Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102658504
D43808.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
695 B
Referenced Files
None
Subscribers
None
D43808.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
@@ -1516,9 +1516,13 @@
tcp_account_for_send(tp, len, (tp->snd_nxt != tp->snd_max), 0, hw_tls);
/*
* In transmit state, time the transmission and arrange for
- * the retransmit. In persist state, just set snd_max.
+ * the retransmit. In persist state, just set snd_max. In a closed
+ * state just return.
*/
- if ((tp->t_flags & TF_FORCEDATA) == 0 ||
+ if (flags & TH_RST) {
+ TCPSTAT_INC(tcps_sndtotal);
+ return (0);
+ } else if ((tp->t_flags & TF_FORCEDATA) == 0 ||
!tcp_timer_active(tp, TT_PERSIST)) {
tcp_seq startseq = tp->snd_nxt;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 11:24 AM (21 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14641430
Default Alt Text
D43808.diff (695 B)
Attached To
Mode
D43808: tcp: stop doing superfluous work after sending RST
Attached
Detach File
Event Timeline
Log In to Comment