Page MenuHomeFreeBSD

D36637.diff
No OneTemporary

D36637.diff

diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -415,7 +415,7 @@
else {
int32_t cwin;
- /*
+ /*
* We are inside of a SACK recovery episode and are
* sending new data, having retransmitted all the
* data possible in the scoreboard.
@@ -431,8 +431,8 @@
* of len is bungled by the optimizer.
*/
if (len > 0) {
- cwin = tp->snd_cwnd -
- (tp->snd_nxt - tp->snd_recover) -
+ cwin = tp->snd_cwnd - imax(0, (int32_t)
+ (tp->snd_nxt - tp->snd_recover)) -
sack_bytes_rxmt;
if (cwin < 0)
cwin = 0;

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 14, 1:30 AM (19 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15789676
Default Alt Text
D36637.diff (664 B)

Event Timeline