changeset 8905:832723a49026 quic

QUIC: stop processing new client streams at the closing state.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 12 Nov 2021 16:29:07 +0300
parents d2c193aa8480
children 41caf5410110
files src/event/quic/ngx_event_quic_streams.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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_connec
 
     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_connec
             return NULL;
         }
 
-        if (qc->shutdown) {
+        if (qc->shutdown || qc->closing) {
             return NGX_QUIC_STREAM_GONE;
         }
     }