]> git.kaiwu.me - nginx.git/commit
QUIC: improved setting the lost timer.
authorRoman Arutyunyan <arut@nginx.com>
Fri, 12 Feb 2021 11:40:33 +0000 (14:40 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Fri, 12 Feb 2021 11:40:33 +0000 (14:40 +0300)
commit8084a829d022ddb5ebc16393a82e5374edb1a8f5
treeca6b48db9aac2edfeabe5f4aa4ce78a04b298399
parentdbd812efd2bf08067651f73fc820c2bdce767382
QUIC: improved setting the lost timer.

Setting the timer is brought into compliance with quic-recovery-34.  Now it's
set from a single function ngx_quic_set_lost_timer() that takes into account
both loss detection and PTO.  The following issues are fixed with this change:

- when in loss detection mode, discarding a context could turn off the
  timer forever after switching to the PTO mode
- when in loss detection mode, sending a packet resulted in rescheduling the
  timer as if it's always in the PTO mode
src/event/quic/ngx_event_quic.c