# HG changeset patch # User Sergey Kandaurov # Date 1597832693 -10800 # Node ID 355e079c5eee4777e2afcff26fc4ff49fbedcaaf # Parent 4e3a71621c9ae15ca90fa9bf90b22c4ef3cf4bbe QUIC: do not arm loss detection timer on packet threshold. diff -r 4e3a71621c9a -r 355e079c5eee src/event/ngx_event_quic.c --- a/src/event/ngx_event_quic.c Wed Aug 19 13:24:47 2020 +0300 +++ b/src/event/ngx_event_quic.c Wed Aug 19 13:24:53 2020 +0300 @@ -3800,15 +3800,15 @@ "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 + && ctx->largest_ack - start->pnum < NGX_QUIC_PKT_THR) + { if (min_wait == 0 || wait < min_wait) { min_wait = wait; } - if (ctx->largest_ack - start->pnum < NGX_QUIC_PKT_THR) { - break; - } + break; } if (ngx_quic_resend_frames(c, ctx, start) != NGX_OK) {