Skip to main content

Module blocking

Module blocking 

Source
Expand description

Blocking (synchronous) frame reader/writer for dedicated I/O threads.

Same length-prefixed framing as the async TCP/UDS transports, but uses std::io::Read/Write directly. Used by the server’s reader and response threads to avoid tokio task scheduling overhead on the hot path.

Structs§

BlockingFrameReader
Blocking frame reader. Reads length-prefixed frames from any Read source.
BlockingFrameWriter
Blocking frame writer. Writes length-prefixed frames to any Write sink.

Constants§

MAX_FRAME_SIZE
Bound on one frame’s payload, after the 4-byte length prefix: the same limit on every transport. A reader refuses a frame declaring more, and BlockingFrameWriter refuses to write one, so an oversized frame is an error at its source rather than a dropped connection at the far end.