Skip to main content

MAX_FRAME_BYTES

Constant MAX_FRAME_BYTES 

Source
pub const MAX_FRAME_BYTES: usize = 1_048_576;
Expand description

Largest frame the decoder buffers. The decoder holds at most this plus one fed chunk; after FrameError::TooLong it cannot resync.