Skip to main content

MAX_PEEK_BYTES

Constant MAX_PEEK_BYTES 

Source
pub const MAX_PEEK_BYTES: usize = _; // 8_192usize
Expand description

Maximum number of bytes a peek prelude should accumulate before declaring the connection’s prefix Unknown. 8 KiB matches what most servers can read in a single non-blocking syscall and covers any realistic TLS ClientHello (with SNI + ALPN + GREASE).