QUIC: fixed leak of bytes_in_flight attributed to lost packets.

This commit is contained in:
Sergey Kandaurov 2020-08-14 16:53:56 +03:00
parent cb0e3a2658
commit f1b0afde65

View 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));