summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2011-09-15 16:03:17 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2011-09-15 16:03:17 +0000
commitd7c2673d3ffb5c8c7c994a3ee385997237ed0d99 (patch)
tree76ddc7f172a5ca4163110f259e38e30da4521ee6 /src/http/ngx_http_upstream.c
parenta890b313f34bdcd6f95e40c75084f6ea5dd8a53c (diff)
downloadnginx-d7c2673d3ffb5c8c7c994a3ee385997237ed0d99.tar.gz
nginx-d7c2673d3ffb5c8c7c994a3ee385997237ed0d99.tar.bz2
API change: ngx_chain_update_chains() now requires pool.
The ngx_chain_update_chains() needs pool to free chain links used for buffers with non-matching tags. Providing one helps to reduce memory consumption for long-lived requests.
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 29432dc14..f698833af 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2382,7 +2382,7 @@ ngx_http_upstream_process_non_buffered_request(ngx_http_request_t *r,
return;
}
- ngx_chain_update_chains(&u->free_bufs, &u->busy_bufs,
+ ngx_chain_update_chains(r->pool, &u->free_bufs, &u->busy_bufs,
&u->out_bufs, u->output.tag);
}