]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix more races between connect and shutdown
authorOndřej Surý <ondrej@sury.org>
Thu, 29 Oct 2020 11:04:00 +0000 (12:04 +0100)
committerOndřej Surý <ondrej@sury.org>
Wed, 9 Dec 2020 09:46:16 +0000 (10:46 +0100)
commite35b8db2499b8fe7cfc6f817cac51cb1814919b4
treede8aaabbb3206a38656680c2a397c5788af2e5a3
parentd8c3e48970c389a34b8ba73d1c348483cd09dc70
Fix more races between connect and shutdown

There were more races that could happen while connecting to a
socket while closing or shutting down the same socket.  This
commit introduces a .closing flag to guard the socket from
being closed twice.

(cherry picked from commit ed3ab63f749cb5eefb3b4b0156b4afdbf9c22b35)
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/udp.c