Skip to content

Commit 8061a41

Browse files
committed
workaround
1 parent 39392b3 commit 8061a41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mongoose.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4745,7 +4745,7 @@ static struct mg_connection *accept_conn(struct mg_connection *lsn,
47454745
return NULL;
47464746
}
47474747
struct connstate *s = (struct connstate *) (c + 1);
4748-
s->dmss = 536; // assume default, RFC-9293 3.7.1
4748+
s->dmss = 1460; // TODO(scaprile): 536; // assume default, RFC-9293 3.7.1
47494749
s->seq = mg_ntohl(pkt->tcp->ack), s->ack = mg_ntohl(pkt->tcp->seq);
47504750
memcpy(s->mac, pkt->eth->src, sizeof(s->mac));
47514751
settmout(c, MIP_TTYPE_KEEPALIVE);

src/net_builtin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ static struct mg_connection *accept_conn(struct mg_connection *lsn,
580580
return NULL;
581581
}
582582
struct connstate *s = (struct connstate *) (c + 1);
583-
s->dmss = 536; // assume default, RFC-9293 3.7.1
583+
s->dmss = 1460; // TODO(scaprile): 536; // assume default, RFC-9293 3.7.1
584584
s->seq = mg_ntohl(pkt->tcp->ack), s->ack = mg_ntohl(pkt->tcp->seq);
585585
memcpy(s->mac, pkt->eth->src, sizeof(s->mac));
586586
settmout(c, MIP_TTYPE_KEEPALIVE);

0 commit comments

Comments
 (0)