mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 14:56:15 +08:00
QUIC: stop processing new client streams at the closing state.
This commit is contained in:
parent
5c99f43e6f
commit
54655cebbb
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user