QUIC: stop processing new client streams at the closing state.

This commit is contained in:
Sergey Kandaurov 2021-11-12 16:29:07 +03:00
parent 56bbbf72d0
commit 8d62635537

View file

@ -314,7 +314,7 @@ ngx_quic_create_client_stream(ngx_connection_t *c, uint64_t id)
qc = ngx_quic_get_connection(c); qc = ngx_quic_get_connection(c);
if (qc->shutdown) { if (qc->shutdown || qc->closing) {
return NGX_QUIC_STREAM_GONE; return NGX_QUIC_STREAM_GONE;
} }
@ -385,7 +385,7 @@ ngx_quic_create_client_stream(ngx_connection_t *c, uint64_t id)
return NULL; return NULL;
} }
if (qc->shutdown) { if (qc->shutdown || qc->closing) {
return NGX_QUIC_STREAM_GONE; return NGX_QUIC_STREAM_GONE;
} }
} }