Mercurial > hg > nginx
comparison src/http/modules/ngx_http_chunked_filter_module.c @ 4114:5db098f97e0e
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 15 Sep 2011 16:03:17 +0000 |
parents | a28ba1cdec27 |
children | 4b0b0e77dc3d |
comparison
equal
deleted
inserted
replaced
4113:a28ba1cdec27 | 4114:5db098f97e0e |
---|---|
219 *ll = NULL; | 219 *ll = NULL; |
220 } | 220 } |
221 | 221 |
222 rc = ngx_http_next_body_filter(r, out); | 222 rc = ngx_http_next_body_filter(r, out); |
223 | 223 |
224 ngx_chain_update_chains(&ctx->free, &ctx->busy, &out, | 224 ngx_chain_update_chains(r->pool, &ctx->free, &ctx->busy, &out, |
225 (ngx_buf_tag_t) &ngx_http_chunked_filter_module); | 225 (ngx_buf_tag_t) &ngx_http_chunked_filter_module); |
226 | 226 |
227 return rc; | 227 return rc; |
228 } | 228 } |
229 | 229 |