Mercurial > hg > nginx
comparison src/http/ngx_http_write_filter_module.c @ 5513:311803b21504
SPDY: body filter was replaced by c->send_chain() function.
It allows to use ngx_http_write_filter() and all its rate limiting logic.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Tue, 14 Jan 2014 16:24:45 +0400 |
parents | 06fbbde04098 |
children | 8486205d10db |
comparison
equal
deleted
inserted
replaced
5512:9fffc0c46e5c | 5513:311803b21504 |
---|---|
182 if (c->write->delayed) { | 182 if (c->write->delayed) { |
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 |
188 && !(c->buffered & NGX_LOWLEVEL_BUFFERED) | |
189 && !(last && c->need_last_buf)) | |
190 { | |
188 if (last || flush) { | 191 if (last || flush) { |
189 for (cl = r->out; cl; /* void */) { | 192 for (cl = r->out; cl; /* void */) { |
190 ln = cl; | 193 ln = cl; |
191 cl = cl->next; | 194 cl = cl->next; |
192 ngx_free_chain(r->pool, ln); | 195 ngx_free_chain(r->pool, ln); |