Skip to main content

SCP_HEADER_MAX_BYTES

Constant SCP_HEADER_MAX_BYTES 

Source
pub const SCP_HEADER_MAX_BYTES: usize = _; // 16_384usize
Expand description

Max bytes accepted for a single SCP protocol header line.

Headers are a few dozen bytes; the cap only exists so a hostile source cannot make us grow an unbounded buffer by never sending a newline.