[9.18] chg: dev: Shutdown the fetch context after canceling the last fetch
Shutdown the fetch context immediately after the last fetch has been canceled from that particular fetch context. Merge branch 'ondrej/shutdown-the-fetch-context-early-9.18' into 'bind-9.18' See merge request isc-projects/bind9!9960
This commit is contained in:
+3
-4
@@ -11210,10 +11210,9 @@ dns_resolver_cancelfetch(dns_fetch_t *fetch) {
|
||||
isc_task_sendanddetach(&etask, ISC_EVENT_PTR(&event_fetchdone));
|
||||
}
|
||||
|
||||
/*
|
||||
* The fctx continues running even if no fetches remain;
|
||||
* the answer is still cached.
|
||||
*/
|
||||
if (ISC_LIST_EMPTY(fctx->events)) {
|
||||
fctx_shutdown(fctx);
|
||||
}
|
||||
UNLOCK(&res->buckets[fctx->bucketnum].lock);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user