mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Fix a bug in syncache where the initial CWND for new incoming connections
was limited to one segment under the faulty assumption of a retransmit. Due to this the opportunity to initialize the increased congestion window according to RFC3390 was missed. Support for RFC3465 introduced in r187289 uncovered the bug as the ACK to SYN/ACK no longer caused snd_cwnd increase by MSS (actually, this increase shouldn't happen as it's explicitly forbidden by RFC3390, but it's another issue). Snd_cwnd remains really small (1*MSS + 1) and this causes really bad interaction with delayed acks on other side. The variable name sc_rxmits is a bit misleading as it counts all transmits, not just retransmits. Submitted by: Maxim Dounin <mdounin-at-mdounin-dot-ru> MFC after: 10 days
This commit is contained in:
parent
16430b12a3
commit
28a53f037a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210666
@ -804,8 +804,9 @@ syncache_socket(struct syncache *sc, struct socket *lso, struct mbuf *m)
|
||||
|
||||
/*
|
||||
* If the SYN,ACK was retransmitted, reset cwnd to 1 segment.
|
||||
* NB: sc_rxmits counts all SYN,ACK transmits, not just retransmits.
|
||||
*/
|
||||
if (sc->sc_rxmits)
|
||||
if (sc->sc_rxmits > 1)
|
||||
tp->snd_cwnd = tp->t_maxseg;
|
||||
tcp_timer_activate(tp, TT_KEEP, tcp_keepinit);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user