]> git.ipfire.org Git - thirdparty/bind9.git/commit
Reuse recursion type code for refresh stale RRset
authorMatthijs Mekking <matthijs@isc.org>
Thu, 29 Sep 2022 07:57:46 +0000 (09:57 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 5 Oct 2022 06:20:48 +0000 (08:20 +0200)
commit64d51285d54ed027b8f0fe74844715d3f1e638b5
tree1378d923db7ee0d6a7e2f22f1d55a55d7c20586e
parent5fb8e555bc115b8be94bf08404e65ac7d12b37a3
Reuse recursion type code for refresh stale RRset

Refreshing a stale RRset is similar to prefetching an RRset, so
reuse the existing code. When refreshing an RRset we need to clear
all db options related to serve-stale so that stale RRsets in cache
are ignored during the refresh.

We no longer need to set the "nodetach" flag, because the refresh
fetch is now a "fetch and forget". So we can detach from the client
in the query_send().

This code will break some serve-stale test cases, this will be fixed
in the successor commit.

TODO: add explanation why the serve-stale test cases fail.
lib/ns/query.c