]> git.ipfire.org Git - thirdparty/bind9.git/commit
Propagate the shutdown event to the recursing ns_client(s)
authorOndřej Surý <ondrej@isc.org>
Thu, 3 Nov 2022 16:42:12 +0000 (17:42 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 7 Dec 2022 17:05:36 +0000 (18:05 +0100)
commit5111258e7a856a8a9f287061b4756a09724cdaf4
tree67f4d7c00ce39fdbfef474de2c7aa5dc8be2ab73
parent198b815e0b52ca5cbd4416d15acc36a036d0df72
Propagate the shutdown event to the recursing ns_client(s)

Send the ns_query_cancel() on the recursing clients when we initiate the
named shutdown for faster shutdown.

When we are shutting down the resolver, we cancel all the outstanding
fetches, and the ISC_R_CANCEL events doesn't propagate to the ns_client
callback.

In the future, the better solution how to fix this would be to look at
the shutdown paths and let them all propagate from bottom (loopmgr) to
top (f.e. ns_client).
lib/ns/client.c
lib/ns/include/ns/client.h
lib/ns/interfacemgr.c