]> git.feebdaed.xyz Git - 0xmirror/nginx.git/commit
QUIC: dynamic packet threshold.
authorRoman Arutyunyan <arut@nginx.com>
Mon, 14 Apr 2025 13:16:47 +0000 (17:16 +0400)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Tue, 15 Apr 2025 15:01:36 +0000 (19:01 +0400)
commitaa49a416b8ea762558211de25d6ee70ca73bb373
tree93a28cd91b74608cec8fae4bd83c5259f1e8c9ae
parent2fb32ff24d431211b673ff9c854352ca0c74e27c
QUIC: dynamic packet threshold.

RFC 9002, Section 6.1.1 defines packet reordering threshold as 3.  Testing
shows that such low value leads to spurious packet losses followed by
congestion window collapse.  The change implements dynamic packet threshold
detection based on in-flight packet range.  Packet threshold is defined
as half the number of in-flight packets, with mininum value of 3.

Also, renamed ngx_quic_lost_threshold() to ngx_quic_time_threshold()
for better compliance with RFC 9002 terms.
src/event/quic/ngx_event_quic_ack.c