]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed leak of bytes_in_flight attributed to lost packets.
authorSergey Kandaurov <pluknet@nginx.com>
Fri, 14 Aug 2020 13:53:56 +0000 (16:53 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Fri, 14 Aug 2020 13:53:56 +0000 (16:53 +0300)
src/event/ngx_event_quic.c

index 65b94938701caa08e8e98055be4c87f2f1aa1afc..a3189e264c28ac5a376dbb209abcfa6018d18502 100644 (file)
@@ -3764,6 +3764,7 @@ ngx_quic_detect_lost(ngx_connection_t *c, ngx_uint_t ack)
                 q = ngx_queue_next(q);
 
                 ngx_queue_remove(&f->queue);
+                qc->congestion.in_flight -= f->len;
                 ngx_queue_insert_tail(&range, &f->queue);
 
             } while (q != ngx_queue_sentinel(&ctx->sent));