]> git.kaiwu.me - nginx.git/commit
QUIC: stream flow control refactored.
authorRoman Arutyunyan <arut@nginx.com>
Mon, 7 Jun 2021 07:12:46 +0000 (10:12 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Mon, 7 Jun 2021 07:12:46 +0000 (10:12 +0300)
commit64586eaa36f1dbc5e21e9007a372c6fb049a6986
tree353897ab7fcf961452dcdae91a4e4aece03665d3
parentdcdf62549f25f030b6cf518b9adb3d2a84313ea5
QUIC: stream flow control refactored.

- Function ngx_quic_control_flow() is introduced.  This functions does
both MAX_DATA and MAX_STREAM_DATA flow controls.  The function is called
from STREAM and RESET_STREAM frame handlers.  Previously, flow control
was only accounted for STREAM.  Also, MAX_DATA flow control was not accounted
at all.

- Function ngx_quic_update_flow() is introduced.  This function advances flow
control windows and sends MAX_DATA/MAX_STREAM_DATA.  The function is called
from RESET_STREAM frame handler, stream cleanup handler and stream recv()
handler.
src/event/quic/ngx_event_quic.c
src/event/quic/ngx_event_quic.h
src/event/quic/ngx_event_quic_connection.h
src/event/quic/ngx_event_quic_streams.c