Page MenuHomeFreeBSD

D28780.diff
No OneTemporary

D28780.diff

diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -3990,8 +3990,8 @@
* If there is going to be a SACK retransmission, adjust snd_cwnd
* accordingly.
*/
- tp->snd_cwnd = tp->snd_nxt - tp->snd_recover +
- tp->sackhint.sack_bytes_rexmit + (snd_cnt * maxseg);
+ tp->snd_cwnd = max(maxseg, (int64_t)tp->snd_nxt - tp->snd_recover +
+ tp->sackhint.sack_bytes_rexmit + (snd_cnt * maxseg));
tp->t_flags |= TF_ACKNOW;
(void) tcp_output(tp);
}

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 8, 6:45 PM (2 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15725401
Default Alt Text
D28780.diff (526 B)

Event Timeline