]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix the isc_nm_closedown() to actually close the pending connections
authorOndřej Surý <ondrej@sury.org>
Wed, 21 Oct 2020 10:52:09 +0000 (12:52 +0200)
committerEvan Hunt <each@isc.org>
Thu, 22 Oct 2020 18:37:16 +0000 (11:37 -0700)
commitf7c82e406e83f98d3a1fecedc78725b441552092
tree19699a7487c938555909646b73a65a16c4c823ce
parent6af08d1ca6a105ee8cb6ead64c4fe34b9154d257
Fix the isc_nm_closedown() to actually close the pending connections

1. The isc__nm_tcp_send() and isc__nm_tcp_read() was not checking
   whether the socket was still alive and scheduling reads/sends on
   closed socket.

2. The isc_nm_read(), isc_nm_send() and isc_nm_resumeread() have been
   changed to always return the error conditions via the callbacks, so
   they always succeed.  This applies to all protocols (UDP, TCP and
   TCPDNS).
13 files changed:
bin/named/controlconf.c
bin/rndc/rndc.c
lib/isc/httpd.c
lib/isc/include/isc/netmgr.h
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/udp.c
lib/isccc/ccmsg.c
lib/isccc/include/isccc/ccmsg.h
lib/ns/client.c
lib/ns/xfrout.c