mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-10 16:31:44 +00:00
1 file changed
+2
@@ -662,6 +662,8 @@ static void read_conn(struct mg_connection *c, struct pkt *pkt) {
|
|||||||
c->loc.port, c->rem.port, mg_htonl(s->seq), mg_htonl(s->ack), "",
|
c->loc.port, c->rem.port, mg_htonl(s->seq), mg_htonl(s->ack), "",
|
||||||
0);
|
0);
|
||||||
s->noack = 0;
|
s->noack = 0;
|
||||||
|
// restart the ACK timer if already running
|
||||||
|
if (s->ttype == MIP_TTYPE_ACK) settmout(c, MIP_TTYPE_ACK);
|
||||||
} else {
|
} else {
|
||||||
// if not already running, setup a timer to send an ACK later
|
// if not already running, setup a timer to send an ACK later
|
||||||
if (s->ttype != MIP_TTYPE_ACK) settmout(c, MIP_TTYPE_ACK);
|
if (s->ttype != MIP_TTYPE_ACK) settmout(c, MIP_TTYPE_ACK);
|
||||||
|
|||||||
Reference in new issue
Block a user