Mercurial > hg > nginx
comparison src/http/v2/ngx_http_v2.c @ 6410:c6ccc1ea9450
HTTP/2: cleaned up state while closing stream.
Without this the state might keep pointing to already closed stream.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 24 Feb 2016 16:05:46 +0300 |
parents | 0e0e2e522fa2 |
children | 8ec349bb60b2 |
comparison
equal
deleted
inserted
replaced
6409:71edd9192f24 | 6410:c6ccc1ea9450 |
---|---|
3659 { | 3659 { |
3660 h2c->connection->error = 1; | 3660 h2c->connection->error = 1; |
3661 } | 3661 } |
3662 } | 3662 } |
3663 | 3663 |
3664 if (h2c->state.stream == stream) { | |
3665 h2c->state.stream = NULL; | |
3666 } | |
3667 | |
3664 node->stream = NULL; | 3668 node->stream = NULL; |
3665 | 3669 |
3666 ngx_queue_insert_tail(&h2c->closed, &node->reuse); | 3670 ngx_queue_insert_tail(&h2c->closed, &node->reuse); |
3667 h2c->closed_nodes++; | 3671 h2c->closed_nodes++; |
3668 | 3672 |