]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix serve-stale hang at shutdown
authorMatthijs Mekking <matthijs@isc.org>
Thu, 1 Jun 2023 08:03:48 +0000 (10:03 +0200)
committerMichal Nowak <mnowak@isc.org>
Fri, 9 Jun 2023 12:54:48 +0000 (14:54 +0200)
commitff5bacf17c2451e9d48c78a5ef96ec0c376ff33d
treee2066dcbb22a32bcca2284e071c41dc18923f326
parent240caa32b9cab90a38ab863fd64e6becf5d1393c
Fix serve-stale hang at shutdown

The 'refresh_rrset' variable is used to determine if we can detach from
the client. This can cause a hang on shutdown. To fix this, move setting
of the 'nodetach' variable up to where 'refresh_rrset' is set (in
query_lookup(), and thus not in ns_query_done()), and set it to false
when actually refreshing the RRset, so that when this lookup is
completed, the client will be detached.
lib/ns/query.c