Mercurial > hg > nginx
changeset 1958:3e9e4581fbba
fix peer sendfile capability
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 04 Apr 2008 12:07:13 +0000 |
parents | fe30478341f0 |
children | 4f16186f5603 |
files | src/http/ngx_http_upstream.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Mon Mar 24 17:17:17 2008 +0000 +++ b/src/http/ngx_http_upstream.c Fri Apr 04 12:07:13 2008 +0000 @@ -333,7 +333,6 @@ clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); - u->output.sendfile = c->sendfile; u->output.pool = r->pool; u->output.bufs.num = 1; u->output.bufs.size = clcf->client_body_buffer_size; @@ -702,6 +701,7 @@ c->read->handler = ngx_http_upstream_process_header; c->sendfile &= r->connection->sendfile; + u->output.sendfile = c->sendfile; c->pool = r->pool; c->read->log = c->write->log = c->log = r->connection->log;