]> 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>
Thu, 28 Jan 2021 15:38:34 +0000 (16:38 +0100)
commitaabdedeae321b05023f93c6871ad19165c5a4382
tree4e1eeb113ee60c3444d076d84fb0797fe4db6f4c
parentc6fd02aed534e21989fafd7b45b132a21c24fdbc
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)
lib/dns/include/dns/db.h
lib/dns/rbtdb.c
lib/ns/query.c