]> git.ipfire.org Git - thirdparty/bind9.git/commit
Tighten serve_stale dig timeouts and inter-step sleeps
authorOndřej Surý <ondrej@isc.org>
Thu, 14 May 2026 11:58:59 +0000 (13:58 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 19 May 2026 09:18:30 +0000 (11:18 +0200)
commita0db3d65056c25b6876c9b976c1e6cf560b2cd28
tree93935253f9915b38f8a6702b47aa4830c0766967
parenta9283c08c24b22677358782f790c62dfe8569988
Tighten serve_stale dig timeouts and inter-step sleeps

With the TCP fallback now actually firing after repeated UDP timeouts,
the resolver covers more retry transitions in the same wall-clock
window, and the original 3-second budgets in two steps of the
serve_stale test left no margin: the dig client at +timeout=3 and the
"sleep 3" before re-enabling the upstream both straddled the moment at
which the resolver switched transport, making the asserted outcome
race-prone.

Drop the dig timeout to 2s and the sleep to 1s so each step lands
firmly on one side of the transport switch.

Co-authored-by: Evan Hunt <each@isc.org>
Assisted-by: Claude:claude-opus-4-7
bin/tests/system/serve_stale/tests.sh