From 54655cebbb99693c7f05b689eb450a2c47ca79eb Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Fri, 12 Nov 2021 16:29:07 +0300 Subject: QUIC: stop processing new client streams at the closing state. --- src/event/quic/ngx_event_quic_streams.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/event/quic/ngx_event_quic_streams.c b/src/event/quic/ngx_event_quic_streams.c index e1c131590..68f6b867c 100644 --- a/src/event/quic/ngx_event_quic_streams.c +++ b/src/event/quic/ngx_event_quic_streams.c @@ -314,7 +314,7 @@ ngx_quic_create_client_stream(ngx_connection_t *c, uint64_t id) qc = ngx_quic_get_connection(c); - if (qc->shutdown) { + if (qc->shutdown || qc->closing) { return NGX_QUIC_STREAM_GONE; } @@ -385,7 +385,7 @@ ngx_quic_create_client_stream(ngx_connection_t *c, uint64_t id) return NULL; } - if (qc->shutdown) { + if (qc->shutdown || qc->closing) { return NGX_QUIC_STREAM_GONE; } } -- cgit