Skip to main content

WEBSOCKET_READ_BUFFER_SIZE

Constant WEBSOCKET_READ_BUFFER_SIZE 

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

The buffer a WebSocket reads into, which it allocates up front. Clients mostly send small stdin and resize events, larger messages grow it while they get read. Tungstenite allocates 128 KiB otherwise, for every session.