aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_buf.h
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/core/ngx_buf.h
parenta890b313f34bdcd6f95e40c75084f6ea5dd8a53c (diff)
downloadnginx-d7c2673d3ffb5c8c7c994a3ee385997237ed0d99.tar.gz
nginx-d7c2673d3ffb5c8c7c994a3ee385997237ed0d99.zip
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/core/ngx_buf.h')
-rw-r--r--src/core/ngx_buf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_buf.h b/src/core/ngx_buf.h
index 847eaad05..a6bf39ff3 100644
--- a/src/core/ngx_buf.h
+++ b/src/core/ngx_buf.h
@@ -154,8 +154,8 @@ ngx_int_t ngx_chain_writer(void *ctx, ngx_chain_t *in);
ngx_int_t ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **chain,
ngx_chain_t *in);
ngx_chain_t *ngx_chain_get_free_buf(ngx_pool_t *p, ngx_chain_t **free);
-void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy,
- ngx_chain_t **out, ngx_buf_tag_t tag);
+void ngx_chain_update_chains(ngx_pool_t *p, ngx_chain_t **free,
+ ngx_chain_t **busy, ngx_chain_t **out, ngx_buf_tag_t tag);
#endif /* _NGX_BUF_H_INCLUDED_ */