oa_gateway_stomp::codec

Constant DEFAULT_MAX_FRAME_SIZE

Source
pub const DEFAULT_MAX_FRAME_SIZE: usize = _; // 16_777_216usize
Expand description

Largest single frame (header block plus body) accepted from a peer.

Both bounds this implies matter: a peer that never terminates a frame would otherwise grow the read buffer without limit, and a peer-supplied content-length must never be trusted as an unbounded buffer offset.