Expand description
Flow control — RFC 9113 §5.2 + §6.9.
Spec §5.2: there is a flow window per stream AND per connection.
A sender may not send more than min(stream_window, conn_window)
of DATA bytes before receiving a WINDOW_UPDATE.
Structs§
- Flow
Control - Flow-control window with signed i64 (Spec §6.9: can transiently become negative when settings shrink the window).
Constants§
- INITIAL_
WINDOW_ SIZE - Initial window size per Spec §6.5.2 (
SETTINGS_INITIAL_WINDOW_SIZE).
Functions§
- decode_
window_ update - Decodes a WINDOW_UPDATE frame payload (4 bytes).
- encode_
window_ update - Encodes a WINDOW_UPDATE frame payload (4 bytes, R bit + 31-bit increment). Spec §6.9.