Skip to main content

Module flow_control

Module flow_control 

Source
Expand description

Window-based flow control for peer data transfer.

Provides per-peer sliding window flow control to prevent overwhelming peers with data faster than they can process. Each peer gets an independent window that grows on successful transfers and shrinks on congestion.

Structsยง

FlowControlConfig
Configuration for the flow control system.
FlowControlStats
Aggregate statistics across all peers.
FlowWindow
Per-peer flow window tracking bytes in flight and acknowledgements.
PeerFlowControl
Window-based flow control manager for multiple peers.