Skip to main content

MAX_LINE_BYTES

Constant MAX_LINE_BYTES 

Source
pub const MAX_LINE_BYTES: usize = _; // 1_048_576usize
Expand description

Maximum length, in bytes, of a single NDJSON line on the control socket.

Applies to both requests and replies, capping the per-connection read buffer so a peer that never sends a newline can’t exhaust memory. 1 MiB is far above any real envelope.