]> git.kaiwu.me - nginx.git/commitdiff
QUIC: stop processing new client streams at the closing state.
authorSergey Kandaurov <pluknet@nginx.com>
Fri, 12 Nov 2021 13:29:07 +0000 (16:29 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Fri, 12 Nov 2021 13:29:07 +0000 (16:29 +0300)
src/event/quic/ngx_event_quic_streams.c

index e1c13159059ff0ef717aa44f3643b6827ed6b3f1..68f6b867c1fe629b0a2ffd8fded5ec8944d494fc 100644 (file)
@@ -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;
         }
     }