Skip to main content

Module stream

Module stream 

Source
Expand description

Phantom Transport - Stream Management

Multiplexed streams within a session. Each stream has independent sequence numbers (no Head-of-Line blocking).

Structs§

OutboundSegment
One segment handed back by Stream::poll_send for transmission.
Stream
Stream - multiplexed data channel within a session

Enums§

StreamState
Stream state

Constants§

INITIAL_STREAM_WINDOW
Initial per-stream send window — caps how many bytes the local side will put on the wire before receiving a WINDOW_UPDATE from the peer. 64 KiB matches QUIC’s stream initial-window default.
MAX_SEND_WINDOW
Hard ceiling on the credit-based send window. WINDOW_UPDATE frames add relative credit; this caps the accumulated window so a peer that floods inflated credits cannot overflow the counter. A compliant peer never grants more than ~one INITIAL_STREAM_WINDOW of outstanding credit, so the cap is only a misbehaving-peer guard (the receiver’s own delivery HARD_CAP is the real bound on buffering).