Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136521064
D24515.id70812.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
497 B
Referenced Files
None
Subscribers
None
D24515.id70812.diff
View Options
Index: sys/netinet/tcp_output.c
===================================================================
--- sys/netinet/tcp_output.c
+++ sys/netinet/tcp_output.c
@@ -1237,8 +1237,11 @@
if (flags & TH_SYN)
th->th_win = htons((u_short)
(min(sbspace(&so->so_rcv), TCP_MAXWIN)));
- else
+ else {
th->th_win = htons((u_short)(recwin >> tp->rcv_scale));
+ if ((th->th_win == 0) && (recwin > 0))
+ th->th_win = 1;
+ }
/*
* Adjust the RXWIN0SENT flag - indicate that we have advertised
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 19, 3:58 AM (10 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25591427
Default Alt Text
D24515.id70812.diff (497 B)
Attached To
Mode
D24515: Prevent premature zeroing of a scaled receiver window
Attached
Detach File
Event Timeline
Log In to Comment