]> git.ipfire.org Git - thirdparty/bind9.git/commit
Only start stale refresh window when resuming
authorMatthijs Mekking <matthijs@isc.org>
Wed, 27 Jan 2021 15:59:27 +0000 (16:59 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Mon, 8 Feb 2021 15:07:43 +0000 (16:07 +0100)
commitdbf5428629c456bb65610ed68a999a424862a209
tree751993d77d62c55557306a059d1f05d9b6c772e1
parent809ec0a22488f375f2a36e8a561814ba34b18397
Only start stale refresh window when resuming

If we did not attempt a fetch due to fetch-limits, we should not start
the stale-refresh-time window.

Introduce a new flag DNS_DBFIND_STALESTART to differentiate between
a resolver failure and unexpected error. If we are resuming, this
indicates a resolver failure, then start the stale-refresh-time window,
otherwise don't start the stale-refresh-time window, but still fall
back to using stale data.

(This commit also wraps some docstrings to 80 characters width)

(cherry picked from commit aabdedeae321b05023f93c6871ad19165c5a4382)
lib/dns/include/dns/db.h
lib/dns/rbtdb.c
lib/ns/query.c