]> git.ipfire.org Git - thirdparty/bind9.git/commit
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)
commitdc3c3efdbf2b2e619d6a0f754bc182cbca4c11c4
treeeb8fabb7dd1be59d841a43f48db88fb9e9245c26
parent2bee113a467d0307460e08584f2fde3c501837b0
parent39c2fc4670ee3dd10693cb8a9007d60442157553
fix: dev: fix EDE 22 time out detection

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