Skip to main content

DNS_TCP_RESPONSE_BUFFER_SIZE

Constant DNS_TCP_RESPONSE_BUFFER_SIZE 

Source
const DNS_TCP_RESPONSE_BUFFER_SIZE: usize = 65_535;
Expand description

Buffer capacity for outgoing DNS TCP responses per connection. 65 535 is the upper bound a single DNS message can reach over TCP (the 16-bit length prefix cap from RFC 1035 §4.2.2). Picking the cap avoids any truncation for zone-transfer or large TXT responses while staying well within memory for the dozen-or-so concurrent connections a local editor.land catalog ever sees.