comparison src/event/ngx_event_quic.c @ 8514:52c88f41d24c quic

QUIC: handling packets with send time equal to lost send time. 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.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 19 Aug 2020 13:24:30 +0300
parents 38f1be6c603f
children 4e3a71621c9a
comparison
equal deleted inserted replaced
8513:38f1be6c603f 8514:52c88f41d24c
3790 3790
3791 ngx_log_debug4(NGX_LOG_DEBUG_EVENT, c->log, 0, 3791 ngx_log_debug4(NGX_LOG_DEBUG_EVENT, c->log, 0,
3792 "quic detect_lost pnum:%ui thr:%M wait:%i level:%d", 3792 "quic detect_lost pnum:%ui thr:%M wait:%i level:%d",
3793 start->pnum, thr, (ngx_int_t) wait, start->level); 3793 start->pnum, thr, (ngx_int_t) wait, start->level);
3794 3794
3795 if ((ngx_msec_int_t) wait >= 0) { 3795 if ((ngx_msec_int_t) wait > 0) {
3796 3796
3797 if (min_wait == 0 || wait < min_wait) { 3797 if (min_wait == 0 || wait < min_wait) {
3798 min_wait = wait; 3798 min_wait = wait;
3799 } 3799 }
3800 3800