Skip to main content

STDIN_PACKET_MAX_SIZE

Constant STDIN_PACKET_MAX_SIZE 

Source
pub(super) const STDIN_PACKET_MAX_SIZE: usize = _; // 33_792usize
Expand description

The maximum size of a stdin packet from an attach client, a larger one gets truncated. The Go client writes at most 32 KiB at once, like CRI-O does for conmon, plus the start of a detach key sequence which it held back, a few bytes which the extra KiB leaves room for. The scratch buffer of the thread keeps this size after the first stdin, see with_scratch.