Skip to main content

MAX_FRAME_BODY_LEN

Constant MAX_FRAME_BODY_LEN 

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

Maximum v1 frame body accepted before allocation.

This 64 MiB starting cap prevents a malformed header from forcing an unbounded allocation. Future protocol versions can negotiate or encode a different cap while preserving the frozen prefix.