Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142348079
D43792.id134055.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
807 B
Referenced Files
None
Subscribers
None
D43792.id134055.diff
View Options
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -2383,8 +2383,7 @@
#endif
INP_WLOCK_ASSERT(inp);
-
- tcp_timer_stop(tp);
+ MPASS(!callout_active(&tp->t_callout));
/* free the reassembly queue, if any */
tcp_reass_flush(tp);
@@ -2524,6 +2523,7 @@
tcp_fastopen_decrement_counter(tp->t_tfo_pending);
tp->t_tfo_pending = NULL;
}
+ tcp_timer_stop(tp);
if (tp->t_fb->tfb_tcp_timer_stop_all != NULL)
tp->t_fb->tfb_tcp_timer_stop_all(tp);
in_pcbdrop(inp);
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c
--- a/sys/netinet/tcp_timer.c
+++ b/sys/netinet/tcp_timer.c
@@ -907,6 +907,7 @@
#endif
INP_WLOCK_ASSERT(inp);
+ MPASS(tp->t_state > TCPS_CLOSED);
if (delta > 0) {
what = TT_STARTING;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 9:30 PM (11 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27754663
Default Alt Text
D43792.id134055.diff (807 B)
Attached To
Mode
D43792: tcp: stop timers and clean scoreboard in tcp_close()
Attached
Detach File
Event Timeline
Log In to Comment