From f1b0afde65c3f697bc8f77f50705b06e805402ee Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Fri, 14 Aug 2020 16:53:56 +0300 Subject: [PATCH] QUIC: fixed leak of bytes_in_flight attributed to lost packets. --- src/event/ngx_event_quic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index 65b949387..a3189e264 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -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));