]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix: dev: fix EDE 22 time out detection
authorColin Vidal <colin@isc.org>
Mon, 27 Jan 2025 11:48:49 +0000 (11:48 +0000)
committerColin Vidal <colin@isc.org>
Mon, 27 Jan 2025 11:48:49 +0000 (11:48 +0000)
Extended DNS error 22 (No reachable authority) was previously detected when `fctx_expired` fired. It turns out this function is used as a "safety net" and the timeout detection should be caught earlier.

It was working though, because of another issue fixed by !9927. But then, the recursive request timed out detection occurs before `fctx_expired` making impossible to raise the EDE 22 error.

This fixes the problem by triggering the EDE 22 in the part of the code detecting the (TCP or UDP) time out and taking the decision to cancel the whole fetch (i.e. There is no other server to attempt to contact).

Note this is not targeting users (no release note) because there is no release versions of BIND between !9927 and this changes. Thus a release note would be confusing.

Closes #5137

Merge branch '5137-ede22' into 'main'

See merge request isc-projects/bind9!9985


Trivial merge