diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2020-08-19 13:24:53 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2020-08-19 13:24:53 +0300 |
commit | 3b83a140ff2710911f6f3251e0d3a7f1ec3f1ac0 (patch) | |
tree | 652b9b7d07dccc390d38470adeab370b729516af /src | |
parent | 391abc00c9ead945635f8b9b6a35e50eeb4dc3e2 (diff) | |
download | nginx-3b83a140ff2710911f6f3251e0d3a7f1ec3f1ac0.tar.gz nginx-3b83a140ff2710911f6f3251e0d3a7f1ec3f1ac0.zip |
QUIC: do not arm loss detection timer on packet threshold.
Diffstat (limited to 'src')
-rw-r--r-- | src/event/ngx_event_quic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index 0781bcfb0..ef57f6cad 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -3800,15 +3800,15 @@ 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 + && 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) { |