Skip to main content

MAX_FRAME_BYTES

Constant MAX_FRAME_BYTES 

Source
pub const MAX_FRAME_BYTES: usize = _; // 67_108_864usize
Expand description

Ceiling on one [len: u32 LE][bytes] frame on the managed-command sockets, enforced by both the server and LaserData Cloud. A reply above it is replaced by a structured too-large error rather than truncated. The u32 length prefix addresses far more (4 GiB), so this is a deliberate per-frame memory bound on the whole-frame buffer, not a transport limit. Every consumer of the managed sockets (the server-side dispatch, the streaming server sidecar, the reply-byte budget) MUST source this one constant rather than redefining its own frame cap, so the layers cannot disagree and a reply admitted by one is not rejected by the next. Changing it moves all of them in lockstep.