mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08: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
@ -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 New Issue
Block a user