Skip to main content

DEFAULT_UNANSWERED_PACKET_BUDGET

Constant DEFAULT_UNANSWERED_PACKET_BUDGET 

Source
pub const DEFAULT_UNANSWERED_PACKET_BUDGET: u32 = 64;
Expand description

Default number of packets a UDP session may send before the target answers.

RFC 9298 ยง7 asks a proxy to limit what an unanswered session can emit, so it cannot be used as a reflector or a port scanner. The default is deliberately generous: handshakes that legitimately need several packets before the first reply (QUIC retransmits, some game protocols) must not break.