+5611. [func] Set "stale-answer-client-timeout" to "off" by default.
+ [GL #2608]
+
5610. [bug] Prevent a crash which could happen when a lookup
triggered by "stale-answer-client-timeout" was attempted
right after recursion for a client query finished.
servfail-ttl 1;\n\
# sortlist <none>\n\
stale-answer-enable false;\n\
- stale-answer-client-timeout 1800; /* in milliseconds */\n\
+ stale-answer-client-timeout off;\n\
stale-answer-ttl 30; /* 30 seconds */\n\
stale-cache-enable false;\n\
stale-refresh-time 30; /* 30 seconds */\n\
status=$((status+ret))
if [ $ret != 0 ]; then echo_i "failed"; fi
-########################################################
-# Test for stale-answer-client-timeout (default 1.8s). #
-########################################################
-echo_i "test stale-answer-client-timeout (default 1.8)"
+################################################
+# Test for stale-answer-client-timeout (1.8s). #
+################################################
+echo_i "test stale-answer-client-timeout (1.8)"
n=$((n+1))
echo_i "updating ns3/named.conf ($n)"
log category.
``stale-answer-client-timeout``
- This option defines the amount of time ``named`` waits before attempting to
- answer the query with a stale RRset from cache. If a stale answer is found,
- ``named`` continues the ongoing fetches, attempting to refresh the RRset in
- cache until the ``resolver-query-timeout`` interval is reached.
-
- The default value is ``1800`` (in milliseconds) and the maximum value is
- bounded to ``resolver-query-timeout`` minus one second. A value of ``0``
- immediately returns a cached RRset if available, and still attempts a refresh
- of the data in cache.
-
- The option can be disabled by setting the value to ``off`` or ``disabled``.
- It also has no effect if ``stale-answer-enable`` is disabled.
+ This option defines the amount of time (in milliseconds) that ``named``
+ waits before attempting to answer the query with a stale RRset from cache.
+ If a stale answer is found, ``named`` continues the ongoing fetches,
+ attempting to refresh the RRset in cache until the
+ ``resolver-query-timeout`` interval is reached.
+
+ This option is off by default, which is equivalent to setting it to
+ ``off`` or ``disabled``. It also has no effect if ``stale-answer-enable``
+ is disabled.
+
+ The maximum value for this option is ``resolver-query-timeout`` minus
+ one second. The minimum value, ``0``, causes a cached RRset to be
+ immediately returned if it is available while still attempting to
+ refresh the data in cache. :rfc:`8767` recommends a value of ``1800``
+ (milliseconds).
``stale-cache-enable``
If ``yes``, enable the retaining of "stale" cached answers. Default ``no``.
9.17.2, but it was not included in the release notes at the time.
[GL #2607]
+- The default value for the ``stale-answer-client-timeout`` option was
+ changed from ``1800`` (ms) to ``off``. The default value may be
+ changed again in future releases as this feature matures. [GL #2608]
+
Bug Fixes
~~~~~~~~~