comparison src/http/ngx_http_upstream.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 215fe9223419
children 70a45a504905
comparison
equal deleted inserted replaced
4113:a28ba1cdec27 4114:5db098f97e0e
2380 if (rc == NGX_ERROR) { 2380 if (rc == NGX_ERROR) {
2381 ngx_http_upstream_finalize_request(r, u, 0); 2381 ngx_http_upstream_finalize_request(r, u, 0);
2382 return; 2382 return;
2383 } 2383 }
2384 2384
2385 ngx_chain_update_chains(&u->free_bufs, &u->busy_bufs, 2385 ngx_chain_update_chains(r->pool, &u->free_bufs, &u->busy_bufs,
2386 &u->out_bufs, u->output.tag); 2386 &u->out_bufs, u->output.tag);
2387 } 2387 }
2388 2388
2389 if (u->busy_bufs == NULL) { 2389 if (u->busy_bufs == NULL) {
2390 2390