]> git.kaiwu.me - nginx.git/commitdiff
QUIC: handling packets with send time equal to lost send time.
authorSergey Kandaurov <pluknet@nginx.com>
Wed, 19 Aug 2020 10:24:30 +0000 (13:24 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Wed, 19 Aug 2020 10:24:30 +0000 (13:24 +0300)
Previously, such packets weren't handled as the resulting zero remaining time
prevented setting the loss detection timer, which, instead, could be disarmed.
For implementation details, see quic-recovery draft 29, appendix A.10.

src/event/ngx_event_quic.c

index 51d32eb838dfdb310af486e5ec7e459d0f9daa2b..f0f07bf38f55821a74d09006ead252fd54f7ce55 100644 (file)
@@ -3792,7 +3792,7 @@ ngx_quic_detect_lost(ngx_connection_t *c)
                            "quic detect_lost pnum:%ui thr:%M wait:%i level:%d",
                            start->pnum, thr, (ngx_int_t) wait, start->level);
 
-            if ((ngx_msec_int_t) wait >= 0) {
+            if ((ngx_msec_int_t) wait > 0) {
 
                 if (min_wait == 0 || wait < min_wait) {
                     min_wait = wait;