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).
Re-exports§
pub use crate::extensions::manager::ExtensionReloadReport;
Structs§
- Connected
- A connection past
Hello/Welcome, beforeAttach. - Extension
Reload Failure - The daemon’s reason an extension was not reloaded
(
DaemonFrame::ExtensionReloadFailed). - Frame
Buf - Reused line buffer for
read_frame: a bigAttached/MessageHistoryframe 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
- Socket
Transport
Enums§
- Auth
State Reply - What
synaps auth stategot from the daemon.
Constants§
- CLOSE_
TIMEOUT - How long
closewaits for the daemon’s answer: its queue retry, the actor’s reply and the session’s end (daemon/close.rsbudgets), plus a margin. - CONNECT_
TIMEOUT - HANDSHAKE_
TIMEOUT - PIN_
TIMEOUT - How long
pinwaits for the daemon’s answer: its longest wait (a parked session unparking) plus a margin. - RELOAD_
EXTENSION_ TIMEOUT - How long
reload_extensionwaits: the daemon first waits for the extension manager’s lock, then stops the old process and runs the new one’s start-up handshake (each bounded by the extension runtime’s own timeouts, around 15 s together). Generous, because giving up early only hides the answer: the daemon finishes the reload either way.
Functions§
- predates_
auth_ state - An old daemon’s reply to
AuthState(daemon/conn.rsRead::Bad: serde’s unknown-variant error behind “malformed frame: “), and nothing else.