comparison src/http/ngx_http_upstream.c @ 168:3314be145cb9 NGINX_0_3_31

nginx 0.3.31 *) Change: now nginx passes the malformed proxied backend responses. *) Feature: the "listen" directives support the address in the "*:port" form. *) Feature: the EVFILER_TIMER support in MacOSX 10.4. *) Workaround: for MacOSX 64-bit kernel kqueue millisecond timeout bug. Thanks to Andrei Nigmatulin. *) Bugfix: if there were several "listen" directives listening one various addresses inside one server, then server names like "*.domain.tld" worked for first address only; bug appeared in 0.3.18. *) Bugfix: if the HTTPS protocol was used in the "proxy_pass" directive and the request body was in temporarily file then the request was not transferred. *) Bugfix: perl 5.8.8 compatibility.
author Igor Sysoev <http://sysoev.ru>
date Fri, 10 Mar 2006 00:00:00 +0300
parents b922c231a392
children 1b490fc19afa
comparison
equal deleted inserted replaced
167:544cb5cba207 168:3314be145cb9
257 257
258 { ngx_null_string, NULL, 0, 0, 0 } 258 { ngx_null_string, NULL, 0, 0, 0 }
259 }; 259 };
260 260
261 261
262 char *ngx_http_upstream_header_errors[] = {
263 "upstream sent invalid header",
264 "upstream sent too long header line"
265 };
266
267
268 void 262 void
269 ngx_http_upstream_init(ngx_http_request_t *r) 263 ngx_http_upstream_init(ngx_http_request_t *r)
270 { 264 {
271 ngx_time_t *tp; 265 ngx_time_t *tp;
272 ngx_connection_t *c; 266 ngx_connection_t *c;
622 NGX_HTTP_INTERNAL_SERVER_ERROR); 616 NGX_HTTP_INTERNAL_SERVER_ERROR);
623 return; 617 return;
624 } 618 }
625 619
626 c->sendfile = 0; 620 c->sendfile = 0;
621 u->output.sendfile = 0;
627 622
628 peer = &u->peer.peers->peer[u->peer.cur_peer]; 623 peer = &u->peer.peers->peer[u->peer.cur_peer];
629 624
630 if (ngx_ssl_set_session(c, peer->ssl_session) != NGX_OK) { 625 if (ngx_ssl_set_session(c, peer->ssl_session) != NGX_OK) {
631 ngx_http_upstream_finalize_request(r, u, 626 ngx_http_upstream_finalize_request(r, u,