Skip to main content

MAX_INBOUND_LINE_BYTES

Constant MAX_INBOUND_LINE_BYTES 

Source
pub const MAX_INBOUND_LINE_BYTES: usize = 1_048_576 /* 1_048_576usize */;
Expand description

Maximum bytes we will buffer for a single SSE line before failing closed. Google’s Code Assist emits reasonably small JSON chunks; refusing anything bigger prevents a hostile upstream from ballooning memory.