Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic.h @ 8791:af33d1ef1c3c quic
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.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 07 Jun 2021 10:12:46 +0300 |
parents | f0882db8c8d4 |
children | 8ab0d609af09 |
comparison
equal
deleted
inserted
replaced
8790:ac0398da8f23 | 8791:af33d1ef1c3c |
---|---|
73 uint64_t id; | 73 uint64_t id; |
74 uint64_t acked; | 74 uint64_t acked; |
75 uint64_t send_max_data; | 75 uint64_t send_max_data; |
76 uint64_t recv_max_data; | 76 uint64_t recv_max_data; |
77 uint64_t recv_offset; | 77 uint64_t recv_offset; |
78 uint64_t recv_window; | |
78 uint64_t recv_last; | 79 uint64_t recv_last; |
79 uint64_t final_size; | 80 uint64_t final_size; |
80 ngx_chain_t *in; | 81 ngx_chain_t *in; |
81 ngx_uint_t cancelable; /* unsigned cancelable:1; */ | 82 ngx_uint_t cancelable; /* unsigned cancelable:1; */ |
82 }; | 83 }; |