cvs commit: src/sys/netinet tcp_subr.c
Robert Watson
rwatson at FreeBSD.org
Wed Aug 2 16:18:08 UTC 2006
rwatson 2006-08-02 16:18:05 UTC
FreeBSD src repository
Modified files:
sys/netinet tcp_subr.c
Log:
Move soisdisconnected() in tcp_discardcb() to one of its calling contexts,
tcp_twstart(), but not to the other, tcp_detach(), as the socket is
already being torn down and therefore there are no listeners. This avoids
a panic if kqueue state is registered on the socket at close(), and
eliminates to XXX comments. There is one case remaining in which
tcp_discardcb() reaches up to the socket layer as part of the TCP host
cache, which would be good to avoid.
Reported by: Goran Gajic <ggajic at afrodita dot rcub dot bg dot ac dot yu>
Revision Changes Path
1.253 +7 -12 src/sys/netinet/tcp_subr.c
More information about the cvs-src
mailing list