mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-10 16:31:44 +00:00
Add BSD sockets API for net_builtin
This commit is contained in:
1 parent
a6452f5311
commit
6089f301de
14 files changed
+2104
-5
No files matched your search
+3
-2
@@ -1423,9 +1423,10 @@ static void read_conn(struct mg_connection *c, struct pkt *pkt) {
|
||||
}
|
||||
s->twclosure = true;
|
||||
} else {
|
||||
flags |= TH_FIN;
|
||||
// Peer closed first: send ACK only, enter CLOSE_WAIT.
|
||||
// The connection loop will call init_closure after pending send data
|
||||
// is flushed, then send our FIN.
|
||||
c->is_draining = 1;
|
||||
settmout(c, MIP_TTYPE_FIN);
|
||||
}
|
||||
tx_tcp(c->mgr->ifp, s->mac, &c->loc, &c->rem, flags, mg_htonl(s->seq),
|
||||
mg_htonl(s->ack), "", 0);
|
||||
|
||||
Reference in new issue
Block a user