mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user