]> git.kaiwu.me - haproxy.git/commit
CLEANUP: dns: use a single maximum DNS message size
authorManu Nicolas <e.nicolas@criteo.com>
Wed, 2 Sep 2026 10:08:45 +0000 (10:08 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Sep 2026 11:40:00 +0000 (13:40 +0200)
commit7c513681ddda5fa1b9929c2380c1278ed00ddcac
tree11e0642b79e4f249b6530012e3643368f56ef433
parentfc05ed8cc2c81204fd159b2b03413afbc5d8ccde
CLEANUP: dns: use a single maximum DNS message size

The DNS code defines separate maximum message sizes for datagram and
stream processing, but both are the DNS protocol limit of 65535 bytes.
The duplicate names make common response buffers look
transport-specific and could allow the values to diverge.

The request ring size also has a TCP-specific name even though both
datagram and stream servers use it.

Replace the message limits with DNS_MAX_MSG_SIZE and rename the ring
limit to DNS_MSG_RING_MAX_SIZE. This does not change any limit or
runtime behavior.
include/haproxy/dns-t.h
include/haproxy/resolvers-t.h
src/dns.c
src/resolvers.c