comparison src/event/ngx_event_pipe.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 227a819b46db
children b66712cde67d
comparison
equal deleted inserted replaced
4113:a28ba1cdec27 4114:5db098f97e0e
636 if (rc == NGX_ERROR) { 636 if (rc == NGX_ERROR) {
637 p->downstream_error = 1; 637 p->downstream_error = 1;
638 return ngx_event_pipe_drain_chains(p); 638 return ngx_event_pipe_drain_chains(p);
639 } 639 }
640 640
641 ngx_chain_update_chains(&p->free, &p->busy, &out, p->tag); 641 ngx_chain_update_chains(p->pool, &p->free, &p->busy, &out, p->tag);
642 642
643 for (cl = p->free; cl; cl = cl->next) { 643 for (cl = p->free; cl; cl = cl->next) {
644 644
645 if (cl->buf->temp_file) { 645 if (cl->buf->temp_file) {
646 if (p->cacheable || !p->cyclic_temp_file) { 646 if (p->cacheable || !p->cyclic_temp_file) {