]> git.kaiwu.me - haproxy.git/commit
REGTEST: resolvers: cover UDP to TCP fallback
authorManu Nicolas <e.nicolas@criteo.com>
Wed, 2 Sep 2026 10:09:24 +0000 (10:09 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Sep 2026 11:41:18 +0000 (13:41 +0200)
commit672010ec2fcb643efcc9d0445190fdabb6e98e04
treebfdd82227f11342dc583278930f14417ed74e1a1
parentbc20f8c0bce282fca58009db721f00c3dc2fb690
REGTEST: resolvers: cover UDP to TCP fallback

Add a Python DNS fixture listening on UDP and TCP on the same port.
It returns an empty truncated response over UDP and a complete response
larger than 1232 bytes over TCP.

The fixture only uses the Python standard library. Tag the test as
devel because it depends on an external interpreter. The feature check
skips it when python3 is unavailable.

Cover default and family-prefixed fallback, late A responses after an
A/AAAA switch, complete UDP replies, invalid questions, explicit
UDP-only and TCP-only nameservers, TCP connection failures, and SRV
updates. A TCP-only truncated SRV response contains usable records and
exercises partial SRV processing without another fallback.

Check the resolver CLI and statistics counters as well as the
Prometheus metric.
reg-tests/contrib/prometheus.vtc
reg-tests/resolvers/tcp_fallback.py [new file with mode: 0644]
reg-tests/resolvers/tcp_fallback.vtc [new file with mode: 0644]