bind9/lib/ns
Matthijs Mekking 99c72bf5da Update code flow in query.c wrt stale data
First of all, there was a flaw in the code related to the
'stale-refresh-time' option. If stale answers are enabled, and we
returned stale data, then it was assumed that it was because we were
in the 'stale-refresh-time' window. But now we could also have returned
stale data because of a 'stale-answer-client-timeout'. To fix this,
introduce a rdataset attribute DNS_RDATASETATTR_STALE_WINDOW to
indicate whether the stale cache entry was returned because the
'stale-refresh-time' window is active.

Second, remove the special case handling when the result is
DNS_R_NCACHENXRRSET. This can be done more generic in the code block
when dealing with stale data.

Putting all stale case handling in the code block when dealing with
stale data makes the code more easy to follow.

Update documentation to be more verbose and to match then new code
flow.

(cherry picked from commit fa0c9280d2)
2021-01-29 10:43:41 +01:00
..
include Allow stale data to be used before name resolution 2021-01-29 10:39:09 +01:00
tests Adjust the nstests for isc_nmhandle_{attach,detach} name change 2020-12-09 10:46:16 +01:00
win32 Use -release instead of -version-info for internal library SONAMEs 2021-01-25 15:28:09 +01:00
client.c Allow stale data to be used before name resolution 2021-01-29 10:39:09 +01:00
hooks.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
interfacemgr.c restore "blackhole" functionality 2020-10-01 16:44:43 +02:00
Kyuafile regen master 2017-12-29 01:44:18 +00:00
lib.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
listenlist.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
log.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
Makefile.in Use -release instead of -version-info for internal library SONAMEs 2021-01-25 15:28:09 +01:00
notify.c change from isc_nmhandle_ref/unref to isc_nmhandle attach/detach 2020-10-01 18:09:35 +02:00
query.c Update code flow in query.c wrt stale data 2021-01-29 10:43:41 +01:00
server.c Change the default ENDS buffer size to 1232 for DNS Flag Day 2020 2020-10-06 09:35:20 +02:00
sortlist.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
stats.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
update.c Print warning when falling back to increment soa serial method 2020-12-12 07:55:29 +01:00
version.c Use -release instead of -version-info for internal library SONAMEs 2021-01-25 15:28:09 +01:00
xfrout.c add serial number to "transfer ended" log messages 2021-01-26 12:38:32 +01:00