comparison src/core/ngx_output_chain.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 7450029ff51e
children d620f497c50f
comparison
equal deleted inserted replaced
4113:a28ba1cdec27 4114:5db098f97e0e
206 206
207 if (last == NGX_ERROR || last == NGX_DONE) { 207 if (last == NGX_ERROR || last == NGX_DONE) {
208 return last; 208 return last;
209 } 209 }
210 210
211 ngx_chain_update_chains(&ctx->free, &ctx->busy, &out, ctx->tag); 211 ngx_chain_update_chains(ctx->pool, &ctx->free, &ctx->busy, &out,
212 ctx->tag);
212 last_out = &out; 213 last_out = &out;
213 } 214 }
214 } 215 }
215 216
216 217