comparison src/core/ngx_inet.c @ 104:146eff53ab60 NGINX_0_2_6

nginx 0.2.6 *) Change: while using load-balancing the time before the failed backend retry was decreased from 60 to 10 seconds. *) Change: the "proxy_pass_unparsed_uri" was canceled, the original URI now passed, if the URI part is omitted in "proxy_pass" directive. *) Feature: the "error_page" directive supports redirects and allows more flexible to change an error code. *) Change: the charset in the "Content-Type" header line now is ignored in proxied subrequests. *) Bugfix: if the URI was changed in the "if" block and request did not found new configuration, then the ngx_http_rewrite_module rules ran again. *) Bugfix: if the "set" directive set the ngx_http_geo_module variable in some configuration part, the this variable was not available in other configuration parts and the "using uninitialized variable" error was occurred; bug appeared in 0.2.2.
author Igor Sysoev <http://sysoev.ru>
date Wed, 05 Oct 2005 00:00:00 +0400
parents 818201e5a553
children dad2fe8ecf08
comparison
equal deleted inserted replaced
103:acdd83ee07cb 104:146eff53ab60
344 344
345 peers->peer[i].uri_separator = ""; 345 peers->peer[i].uri_separator = "";
346 346
347 peers->peer[i].weight = 1; 347 peers->peer[i].weight = 1;
348 peers->peer[i].max_fails = 1; 348 peers->peer[i].max_fails = 1;
349 peers->peer[i].fail_timeout = 60; 349 peers->peer[i].fail_timeout = 10;
350 } 350 }
351 351
352 } else { 352 } else {
353 353
354 /* MP: ngx_shared_palloc() */ 354 /* MP: ngx_shared_palloc() */
469 u->port_text = *url; 469 u->port_text = *url;
470 u->wildcard = 1; 470 u->wildcard = 1;
471 471
472 } else { 472 } else {
473 if (u->port_text.len == 0) { 473 if (u->port_text.len == 0) {
474 return "no URI"; 474 u->default_port = 1;
475 return NULL;
475 } 476 }
476 477
477 port = ngx_atoi(u->port_text.data, u->port_text.len); 478 port = ngx_atoi(u->port_text.data, u->port_text.len);
478 479
479 if (port == NGX_ERROR || port < 1 || port > 65536) { 480 if (port == NGX_ERROR || port < 1 || port > 65536) {