]> git.ipfire.org Git - thirdparty/bind9.git/commit
Serve-stale nit fixes
authorMatthijs Mekking <matthijs@isc.org>
Mon, 26 Apr 2021 07:19:25 +0000 (09:19 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 28 Apr 2021 11:53:52 +0000 (13:53 +0200)
commit4615cbb59759a98b9bf2460f8cd56175cb2e427f
treedcb8251eba7842609fdfa3e2fb0005261894d4eb
parent99157e2220bebdf341b7b9f2177f89461451d64a
Serve-stale nit fixes

While working on the serve-stale backports, I noticed the following
oddities:

1. In the serve-stale system test, in one case we keep track of the
   time how long it took for dig to complete. In commit
   aaed7f9d8c2465790d769221dfe8378c7147f5eb, the code removed the
   exception to check for result == ISC_R_SUCCESS on stale found
   answers, and adjusted the test accordingly. This failed to update
   the time tracking accordingly. Move the t1/t2 time track variables
   back around the two dig commands to ensure the lookups resolved
   faster than the resolver-query-timeout.

2. We can remove the setting of NS_QUERYATTR_STALEOK and
   DNS_RDATASETATTR_STALE_ADDED on the "else if (stale_timeout)"
   code path, because they are added later when we know we have
   actually found a stale answer on a stale timeout lookup.

3. We should clear the NS_QUERYATTR_STALEOK flag from the client
   query attributes instead of DNS_RDATASETATTR_STALE_ADDED (that
   flag is set on the rdataset attributes).

4. In 'bin/named/config.c' we should set the configuration options
   in alpabetical order.

5. In the ARM, in the backports we have added "(stale)" between
   "cached" and "RRset" to make more clear a stale RRset may be
   returned in this scenario.

(cherry picked from commit 104b67623541c94744e0bd4ab6e2c554f1e1dccf)
bin/named/config.c
bin/tests/system/serve-stale/tests.sh
doc/arm/reference.rst
lib/ns/query.c