Skip to main content

DEFAULT_MAX_PAYLOAD_LEN

Constant DEFAULT_MAX_PAYLOAD_LEN 

Source
pub const DEFAULT_MAX_PAYLOAD_LEN: u32 = _; // 65_536u32
Expand description

Default maximum payload length accepted from clients.

Standard client-to-server payloads are tiny (authentication is the largest); the default leaves generous room for custom extension messages while bounding what a hostile length field can allocate.