Skip to main content

Module flow

Module flow 

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

FlowControl
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.