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 5c99f43e6f
commit 54655cebbb

View 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;
}
}