mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 12:14:16 +00:00
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
1d294eea3e
commit
8b40f1eaec
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…
Add table
Add a link
Reference in a new issue