Skip to main content

MAX_PAYLOAD

Constant MAX_PAYLOAD 

Source
pub const MAX_PAYLOAD: u32 = _; // 16_777_216u32
Expand description

Hard ceiling on payload size. Keeps decode bounded even when a peer declares an absurd length. 16 MiB is generous for v0.x — revisit alongside streaming result-set support.