HTTP/2: cleaned up state while closing stream.

Without this the state might keep pointing to already closed stream.
This commit is contained in:
Valentin Bartenev 2016-02-24 16:05:46 +03:00
parent dec9580896
commit ad888d257d

View file

@ -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);