summaryrefslogtreecommitdiffhomepage
path: root/src/event/ngx_event_pipe.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/event/ngx_event_pipe.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/event/ngx_event_pipe.c')
-rw-r--r--src/event/ngx_event_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/ngx_event_pipe.c b/src/event/ngx_event_pipe.c
index 53d738f0a..6f068fe8a 100644
--- a/src/event/ngx_event_pipe.c
+++ b/src/event/ngx_event_pipe.c
@@ -638,7 +638,7 @@ ngx_event_pipe_write_to_downstream(ngx_event_pipe_t *p)
return ngx_event_pipe_drain_chains(p);
}
- ngx_chain_update_chains(&p->free, &p->busy, &out, p->tag);
+ ngx_chain_update_chains(p->pool, &p->free, &p->busy, &out, p->tag);
for (cl = p->free; cl; cl = cl->next) {