pub const RECOMMENDED_UDP_PAYLOAD_BUDGET: usize = 1024;Expand description
Recommended upper bound on the plaintext bytes handed to the UDP channel per
datagram across every transport. Measured floors: the P2P QUIC connection
reports a 1162-byte datagram ceiling at spawn (=> 1066 B payload after the
64-byte HDP header + 32-byte AEAD at SecurityLevel::Standard); the raw
hole-punched socket allows 1232 B datagrams (=> 1136 B). 1024 fits both
with headroom for one extra AEAD layer.
The endpoint verifies the budget against the live transport’s
OutboundUdpSender::max_payload_len(); this constant is only a safe
starting point for callers.