Expand description
Session layer for flow control and channel management. Session layer that wraps a Transport and enforces RPC semantics.
The Session handles:
- Per-channel credit tracking (flow control)
- Channel state machine (Open → HalfClosedLocal/Remote → Closed)
- Cancellation (marking channels as cancelled, dropping late frames)
- Deadline checking before dispatch
- Control frame processing (PING/PONG, CANCEL, CREDITS)
Structs§
- Channel
State - Per-channel state tracked by the session.
- Session
- Session wraps a Transport and enforces RPC semantics.
Enums§
- Channel
Lifecycle - Channel lifecycle state.
Constants§
- DEFAULT_
INITIAL_ CREDITS - Default initial credits for new channels (64KB).