]> git.kaiwu.me - nginx.git/commit
Merging r4114, r4129:
authorIgor Sysoev <igor@sysoev.ru>
Fri, 30 Sep 2011 14:20:52 +0000 (14:20 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 30 Sep 2011 14:20:52 +0000 (14:20 +0000)
commit893049ef20562e264552b7878ce4add7139589e8
tree4d5297558036ca8c20c50d8d2b71bbe8027779b7
parentb8b0479e1cd8956236be4d2733f2e57f4d76b4d7
Merging r4114, r4129:

Buffers reuse in chunked filter.

There were 2 buffers allocated on each buffer chain sent through chunked
filter (one buffer for chunk size, another one for trailing CRLF, about
120 bytes in total on 32-bit platforms).  This resulted in large memory
consumption with long-lived requests sending many buffer chains.  Usual
example of problematic scenario is streaming though proxy with
proxy_buffering set to off.

Introduced buffers reuse reduces memory consumption in the above problematic
scenario.

See here for initial report:
http://mailman.nginx.org/pipermail/nginx/2010-April/019814.html
src/http/modules/ngx_http_chunked_filter_module.c