diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2021-11-12 16:29:07 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2021-11-12 16:29:07 +0300 |
commit | 54655cebbb99693c7f05b689eb450a2c47ca79eb (patch) | |
tree | 549d08a82b94f8ec3d459fc30eafe786dac9f328 /src | |
parent | 5c99f43e6f6f2e97a625bf00330f2f8d5af29815 (diff) | |
download | nginx-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.c | 4 |
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; } } |