]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tcp: stop doing superfluous work after sending RST
authorRichard Scheffenegger <rscheff@FreeBSD.org>
Sat, 10 Feb 2024 09:24:10 +0000 (10:24 +0100)
committerRichard Scheffenegger <rscheff@FreeBSD.org>
Sat, 10 Feb 2024 09:25:02 +0000 (10:25 +0100)
commita8e817cf5c9c6e34357e0c078a256e2526b9da53
treea8286b293447c8c465e3ffac6f5e96a65ca5f5e9
parent3eeb22cb819409b49296ecb0acbd453671168313
tcp: stop doing superfluous work after sending RST

When sending a RST control segment in tcp_output() it
means we are in TCPS_CLOSED state, called from tcp_drop().
Once the RST is sent, don't call tcp_timer_activate() or
update anything in tcpcb, since that will go away shortly.

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