]> git.kaiwu.me - nginx.git/commit
QUIC: limit in-flight bytes by congestion window.
authorRoman Arutyunyan <arut@nginx.com>
Thu, 29 Jul 2021 09:49:16 +0000 (12:49 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Thu, 29 Jul 2021 09:49:16 +0000 (12:49 +0300)
commit7a8fa1182812cd2408f2fe404b3ec6de35b9299c
tree8e15ac61c72bbd6eb6862e8dba065024b1f37b18
parentcc3752ce8e7d2ff93df3da054cec2cccbbcfe260
QUIC: limit in-flight bytes by congestion window.

Previously, in-flight byte counter and congestion window were properly
maintained, but the limit was not properly implemented.

Now a new datagram is sent only if in-flight byte counter is less than window.
The limit is datagram-based, which means that a single datagram may lead to
exceeding the limit, but the next one will not be sent.
src/event/quic/ngx_event_quic_ack.c
src/event/quic/ngx_event_quic_output.c