]> git.kaiwu.me - nginx.git/commit
Added primitive flow control mechanisms.
authorVladimir Homutov <vl@nginx.com>
Wed, 15 Apr 2020 15:54:03 +0000 (18:54 +0300)
committerVladimir Homutov <vl@nginx.com>
Wed, 15 Apr 2020 15:54:03 +0000 (18:54 +0300)
commit29b6ad00a2166e3b6e9fd159af18c11467e5ea08
tree184bdb32c574f24a0618f48574d66bed5d6a56bf
parent2e2d1843c3ec3057ed6b8657a9b483ef16cbae80
Added primitive flow control mechanisms.

 + MAX_STREAM_DATA frame is sent when recv() is performed on stream
   The new value is a sum of total bytes received by stream + free
   space in a buffer;

   The sending of MAX_STREM_DATA frame in response to STREAM_DATA_BLOCKED
   frame is adjusted to follow the same logic as above.

 + MAX_DATA frame is sent when total amount of received data is 2x
   of current limit.  The limit is doubled.

 + Default values of transport parameters are adjusted to more meaningful
   values:

   initial stream limits are set to quic buffer size instead of
   unrealistically small 255.

   initial max data is decreased to 16 buffer sizes, in an assumption that
   this is enough for a relatively short connection, instead of randomly
   chosen big number.

All this allows to initiate a stable flow of streams that does not block
on stream/connection limits (tested with FF 77.0a1 and 100K requests)
src/event/ngx_event_quic.c
src/event/ngx_event_quic_transport.c
src/http/v3/ngx_http_v3_module.c