]> git.ipfire.org Git - thirdparty/bind9.git/commit
Clear the callbacks when isc_nm_stoplistening() is called
authorOndřej Surý <ondrej@isc.org>
Wed, 24 Aug 2022 12:59:50 +0000 (14:59 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 26 Aug 2022 07:09:25 +0000 (09:09 +0200)
commit718e92c31a6148c586be1e48a320ec369ff26f0a
tree426424c632bf377f522f2dbe352154577d5b360c
parent4d07768a09555192dfd69364e0f3324e5b4f965a
Clear the callbacks when isc_nm_stoplistening() is called

When we are closing the listening sockets, there's a time window in
which the TCP connection could be accepted although the respective
stoplistening function has already returned to control to the caller.
Clear the accept callback function early, so it doesn't get called when
we are not interested in the incoming connections anymore.
lib/isc/netmgr/http.c
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/tlsdns.c
lib/isc/netmgr/tlsstream.c
lib/isc/netmgr/udp.c