aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2021-11-12 16:29:07 +0300
committerSergey Kandaurov <pluknet@nginx.com>2021-11-12 16:29:07 +0300
commit54655cebbb99693c7f05b689eb450a2c47ca79eb (patch)
tree549d08a82b94f8ec3d459fc30eafe786dac9f328 /src
parent5c99f43e6f6f2e97a625bf00330f2f8d5af29815 (diff)
downloadnginx-54655cebbb99693c7f05b689eb450a2c47ca79eb.tar.gz
nginx-54655cebbb99693c7f05b689eb450a2c47ca79eb.zip
QUIC: stop processing new client streams at the closing state.
Diffstat (limited to 'src')
-rw-r--r--src/event/quic/ngx_event_quic_streams.c4
1 files changed, 2 insertions, 2 deletions
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;
}
}