Klaus Demo nginx / e101338
upstream sendfile bit was overridden by r->connection->sendfile Igor Sysoev 13 years ago
2 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8484 c->recv_chain = ngx_recv_chain;
8585 c->send_chain = ngx_send_chain;
8686
87 c->sendfile = 1;
88
8789 c->log_error = pc->log_error;
8890
8991 if (pc->sockaddr->sa_family != AF_INET) {
582582 c->write->handler = ngx_http_upstream_send_request_handler;
583583 c->read->handler = ngx_http_upstream_process_header;
584584
585 c->sendfile = r->connection->sendfile;
585 c->sendfile &= r->connection->sendfile;
586586
587587 c->pool = r->pool;
588588 c->read->log = c->write->log = c->log = r->connection->log;