Page MenuHomeFreeBSD

D48237.diff
No OneTemporary

D48237.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
@@ -421,8 +421,9 @@
* sending new data, having retransmitted all the
* data possible in the scoreboard.
*/
- len = imin(sbavail(&so->so_snd) - off,
- sendwin - tcp_compute_pipe(tp));
+ len = imax(
+ imin(sbavail(&so->so_snd), sendwin) -
+ imax(tcp_compute_pipe(tp), off), 0);
}
}

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 25, 1:40 PM (17 h, 23 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15634143
Default Alt Text
D48237.diff (449 B)

Event Timeline