Mercurial > hg > nginx
comparison src/http/modules/ngx_http_slice_filter_module.c @ 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 | d16ba0ea3434 |
comparison
equal
deleted
inserted
replaced
6321:bc9ea464e354 | 6322:4f0f4f02c98f |
---|---|
220 } | 220 } |
221 | 221 |
222 for (cl = in; cl; cl = cl->next) { | 222 for (cl = in; cl; cl = cl->next) { |
223 if (cl->buf->last_buf) { | 223 if (cl->buf->last_buf) { |
224 cl->buf->last_buf = 0; | 224 cl->buf->last_buf = 0; |
225 cl->buf->last_in_chain = 1; | |
225 cl->buf->sync = 1; | 226 cl->buf->sync = 1; |
226 ctx->last = 1; | 227 ctx->last = 1; |
227 } | 228 } |
228 } | 229 } |
229 | 230 |