SIGN IN SIGN UP

BUG/MINOR: resolvers: classify empty truncated responses

The answer count is checked before the response question is parsed.
Most DNS servers return a truncated response without answers, so such
a response is classified as ANCOUNT_ZERO before the TC flag and
question type are examined. It increments the wrong counter and hides
the actual response status.

Move the empty-answer check after question parsing and TC handling.
Truncated SRV responses keep their existing partial-answer behavior.

This should be backported as far as 2.4.
M
Manu Nicolas committed
3b400190830c5ed9b99e616d23eb8f52937f10e8
Parent: 15a436b
Committed by Christopher Faulet <cfaulet@haproxy.com> on 9/1/2026, 3:58:13 PM