mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-15 10:29:47 +00:00
remove deprecated field in conn_state
This commit is contained in:
1 parent
1f41e9d4b3
commit
4bce19b13e
2 files changed
+2
-4
No files matched your search
+1
-2
@@ -6474,7 +6474,6 @@ struct connstate {
|
||||
#define MIP_TTYPE_SYN 3 // SYN sent, waiting for response
|
||||
#define MIP_TTYPE_FIN 4 // FIN sent, waiting until terminating the connection
|
||||
uint8_t tmiss; // Number of keep-alive misses
|
||||
struct mg_iobuf raw; // For TLS only. Incoming raw data
|
||||
bool fin_rcvd; // We have received FIN from the peer
|
||||
bool twclosure; // 3-way closure done
|
||||
};
|
||||
@@ -8609,8 +8608,8 @@ static void init_closure(struct mg_connection *c) {
|
||||
|
||||
static void close_conn(struct mg_connection *c) {
|
||||
struct connstate *s = (struct connstate *) (c + 1);
|
||||
mg_iobuf_free(&s->raw); // For TLS connections, release raw data
|
||||
mg_close_conn(c);
|
||||
(void) s;
|
||||
}
|
||||
|
||||
static bool can_write(struct mg_connection *c) {
|
||||
|
||||
+1
-2
@@ -32,7 +32,6 @@ struct connstate {
|
||||
#define MIP_TTYPE_SYN 3 // SYN sent, waiting for response
|
||||
#define MIP_TTYPE_FIN 4 // FIN sent, waiting until terminating the connection
|
||||
uint8_t tmiss; // Number of keep-alive misses
|
||||
struct mg_iobuf raw; // For TLS only. Incoming raw data
|
||||
bool fin_rcvd; // We have received FIN from the peer
|
||||
bool twclosure; // 3-way closure done
|
||||
};
|
||||
@@ -2167,8 +2166,8 @@ static void init_closure(struct mg_connection *c) {
|
||||
|
||||
static void close_conn(struct mg_connection *c) {
|
||||
struct connstate *s = (struct connstate *) (c + 1);
|
||||
mg_iobuf_free(&s->raw); // For TLS connections, release raw data
|
||||
mg_close_conn(c);
|
||||
(void) s;
|
||||
}
|
||||
|
||||
static bool can_write(struct mg_connection *c) {
|
||||
|
||||
Reference in new issue
Block a user