Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177637598
D61605.1794913221.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
801 B
Referenced Files
None
Subscribers
None
D61605.1794913221.diff
View Options
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
@@ -587,19 +587,7 @@
if (len) {
if (len >= tp->t_maxseg)
goto send;
- /*
- * As the TCP header options are now
- * considered when setting up the initial
- * window, we would not send the last segment
- * if we skip considering the option length here.
- * Note: this may not work when tcp headers change
- * very dynamically in the future.
- */
- if ((((tp->t_flags & TF_SIGNATURE) ?
- PADTCPOLEN(TCPOLEN_SIGNATURE) : 0) +
- ((tp->t_flags & TF_RCVD_TSTMP) ?
- PADTCPOLEN(TCPOLEN_TIMESTAMP) : 0) +
- len) >= tp->t_maxseg)
+ if (len >= tcp_maxseg(tp))
goto send;
/*
* NOTE! on localhost connections an 'ack' from the remote
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 17, 11:00 AM (16 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41789908
Default Alt Text
D61605.1794913221.diff (801 B)
Attached To
Mode
D61605: tcp: improve sender side SWS avoidance
Attached
Detach File
Event Timeline