comparison src/http/ngx_http_write_filter_module.c @ 686:2e8a942c8872 NGINX_1_3_6

nginx 1.3.6 *) Feature: the ngx_http_gunzip_filter_module. *) Feature: the "memcached_gzip_flag" directive. *) Feature: the "always" parameter of the "gzip_static" directive. *) Bugfix: in the "limit_req" directive; the bug had appeared in 1.1.14. Thanks to Charles Chen. *) Bugfix: nginx could not be built by gcc 4.7 with -O2 optimization if the --with-ipv6 option was used.
author Igor Sysoev <http://sysoev.ru>
date Wed, 12 Sep 2012 00:00:00 +0400
parents d0f7a625f27c
children 88a1b4797f2e
comparison
equal deleted inserted replaced
685:0a9f545d4f4b 686:2e8a942c8872
183 c->buffered |= NGX_HTTP_WRITE_BUFFERED; 183 c->buffered |= NGX_HTTP_WRITE_BUFFERED;
184 return NGX_AGAIN; 184 return NGX_AGAIN;
185 } 185 }
186 186
187 if (size == 0 && !(c->buffered & NGX_LOWLEVEL_BUFFERED)) { 187 if (size == 0 && !(c->buffered & NGX_LOWLEVEL_BUFFERED)) {
188 if (last) { 188 if (last || flush) {
189 for (cl = r->out; cl; /* void */) {
190 ln = cl;
191 cl = cl->next;
192 ngx_free_chain(r->pool, ln);
193 }
194
189 r->out = NULL; 195 r->out = NULL;
190 c->buffered &= ~NGX_HTTP_WRITE_BUFFERED;
191
192 return NGX_OK;
193 }
194
195 if (flush) {
196 do {
197 r->out = r->out->next;
198 } while (r->out);
199
200 c->buffered &= ~NGX_HTTP_WRITE_BUFFERED; 196 c->buffered &= ~NGX_HTTP_WRITE_BUFFERED;
201 197
202 return NGX_OK; 198 return NGX_OK;
203 } 199 }
204 200