]> git.kaiwu.me - nginx.git/commit
QUIC: cleanup send context properly.
authorVladimir Homutov <vl@nginx.com>
Mon, 26 Oct 2020 21:14:24 +0000 (00:14 +0300)
committerVladimir Homutov <vl@nginx.com>
Mon, 26 Oct 2020 21:14:24 +0000 (00:14 +0300)
commit68f7e9540a0852bc69453058ae7588c77a3a1494
treeafc1c940fc2636eb172f706137b88699233fdc57
parenta1473ce8b08cba7959daee8860677f70d4e36c8a
QUIC: cleanup send context properly.

The patch resets ctx->frames queue, which may contain frames.  It was possible
that congestion or amplification limits prevented all frames to be sent.

Retransmitted frames could be accounted twice as inflight: first time in
ngx_quic_congestion_lost() called from ngx_quic_resend_frames(), and later
from ngx_quic_discard_ctx().
src/event/ngx_event_quic.c