Module session

Module session 

Source
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§

ChannelState
Per-channel state tracked by the session.
Session
Session wraps a Transport and enforces RPC semantics.

Enums§

ChannelLifecycle
Channel lifecycle state.

Constants§

DEFAULT_INITIAL_CREDITS
Default initial credits for new channels (64KB).