From 17eebfea99bb554741a5732ed3a4472399591c5a Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Thu, 15 Apr 2021 12:17:19 +0300 Subject: [PATCH] QUIC: avoid sending extra frames in case of error. --- src/event/quic/ngx_event_quic_streams.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/event/quic/ngx_event_quic_streams.c b/src/event/quic/ngx_event_quic_streams.c index 716550b3d..6739d3d93 100644 --- a/src/event/quic/ngx_event_quic_streams.c +++ b/src/event/quic/ngx_event_quic_streams.c @@ -718,6 +718,10 @@ ngx_quic_stream_cleanup_handler(void *data) return; } + if (qc->error) { + goto done; + } + if ((qs->id & NGX_QUIC_STREAM_SERVER_INITIATED) == 0 || (qs->id & NGX_QUIC_STREAM_UNIDIRECTIONAL) == 0) {