HTTP/2: cleaned up state while closing stream.
Without this the state might keep pointing to already closed stream.
This commit is contained in:
parent
dec9580896
commit
ad888d257d
1 changed files with 4 additions and 0 deletions
|
@ -3661,6 +3661,10 @@ ngx_http_v2_close_stream(ngx_http_v2_stream_t *stream, ngx_int_t rc)
|
|||
}
|
||||
}
|
||||
|
||||
if (h2c->state.stream == stream) {
|
||||
h2c->state.stream = NULL;
|
||||
}
|
||||
|
||||
node->stream = NULL;
|
||||
|
||||
ngx_queue_insert_tail(&h2c->closed, &node->reuse);
|
||||
|
|
Loading…
Reference in a new issue