]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tcp: stop timers and clean scoreboard in tcp_close()
authorRichard Scheffenegger <rscheff@FreeBSD.org>
Sat, 10 Feb 2024 09:28:42 +0000 (10:28 +0100)
committerRichard Scheffenegger <rscheff@FreeBSD.org>
Sat, 10 Feb 2024 09:30:00 +0000 (10:30 +0100)
commit62d47d73b7eb01f3b0a37541df5e7aaa36f54335
tree5e5a964d577d7ed052e64f105714530d31f81c08
parenta8e817cf5c9c6e34357e0c078a256e2526b9da53
tcp: stop timers and clean scoreboard in tcp_close()

Stop timers when in tcp_close() instead of doing that in tcp_discardcb().
A connection in CLOSED state shall not need any timers. Assert that no
timer is rescheduled after that in tcp_timer_activate() and verfiy that
this is also the expected state in tcp_discardcb().

PR: 276761
Reviewed By: glebius, tuexen, #transport
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D43792
sys/netinet/tcp_subr.c
sys/netinet/tcp_timer.c