QUIC: stop processing new client streams at the closing state.
This commit is contained in:
parent
56bbbf72d0
commit
8d62635537
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue