Add BSD sockets API for net_builtin

This commit is contained in:
cpq committed 2026-05-31 10:00:52 +01:00
1 parent a6452f5311
commit 6089f301de
14 files changed
+2104 -5

No files matched your search

+3 -2
View File
@@ -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);