Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149961304
D29565.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
653 B
Referenced Files
None
Subscribers
None
D29565.diff
View Options
Index: sys/netinet/tcp_output.c
===================================================================
--- sys/netinet/tcp_output.c
+++ sys/netinet/tcp_output.c
@@ -286,6 +286,14 @@
sendwin = min(tp->snd_wnd, tp->snd_cwnd);
flags = tcp_outflags[tp->t_state];
+ if (__predict_false(flags & TH_FIN) && !(tp->t_flags & TF_SENTFIN)) {
+ /* clear FIN if there is still unacknowledged data */
+ if (SEQ_LT(tp->snd_una, tp->snd_max))
+ flags &= ~TH_FIN;
+ else
+ tp->t_flags |= TF_ACKNOW;
+ }
+ }
/*
* Send any SACK-generated retransmissions. If we're explicitly trying
* to send out new data (when sendalot is 1), bypass this function.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 29, 10:19 AM (13 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30522144
Default Alt Text
D29565.diff (653 B)
Attached To
Mode
D29565: Send FIN bit by itself
Attached
Detach File
Event Timeline
Log In to Comment