Mercurial > hg > nginx
changeset 6322:4f0f4f02c98f
Slice filter: terminate first slice with last_in_chain flag.
This flag makes sub filter flush buffered data and optimizes allocation in copy
filter.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 08 Dec 2015 17:39:56 +0300 |
parents | bc9ea464e354 |
children | 1bdc497c8160 |
files | src/http/modules/ngx_http_slice_filter_module.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_slice_filter_module.c Tue Dec 08 17:39:56 2015 +0300 +++ b/src/http/modules/ngx_http_slice_filter_module.c Tue Dec 08 17:39:56 2015 +0300 @@ -222,6 +222,7 @@ for (cl = in; cl; cl = cl->next) { if (cl->buf->last_buf) { cl->buf->last_buf = 0; + cl->buf->last_in_chain = 1; cl->buf->sync = 1; ctx->last = 1; }