Skip to main content

MAX_FRAME_BYTES

Constant MAX_FRAME_BYTES 

Source
pub const MAX_FRAME_BYTES: u32 = _; // 67_108_864u32
Expand description

Largest payload a single frame may declare.

A reader allocates what the header says before it has seen the body, so this is the ceiling on what one malformed or hostile frame can cost.