Skip to main content

Module socket_transport

Module socket_transport 

Source
Expand description

SocketTransport — the client side of the daemon UDS (PLAN-phase2 §2.10).

Line-JSON frames (wire.rs). A writer task owns the write half; the reader lives on the transport. Backpressure mirrors LocalTransport: send fails with Backpressure when the bounded writer queue is full and Closed once the socket is gone — never a silent drop.

Tracing here logs frame types only (ClientFrame’s redacting Debug).

Structs§

Connected
A connection past Hello/Welcome, before Attach.
FrameBuf
Reused line buffer for read_frame: a big Attached/MessageHistory frame grows it once; after any frame > 1 MiB it shrinks back to 64 KiB so the peak is not retained for the life of the connection (§2.1 #1).
Pong
SocketTransport

Constants§

CONNECT_TIMEOUT
HANDSHAKE_TIMEOUT