comparison src/http/ngx_http_upstream_round_robin.c @ 262:e0b1d0a6c629 NGINX_0_5_1

nginx 0.5.1 *) Bugfix: the "post_action" directive might not run after a unsuccessful completion of a request. *) Workaround: for Eudora for Mac; bug appeared in 0.4.11. Thanks to Bron Gondwana. *) Bugfix: if the "upstream" name was used in the "fastcgi_pass", then the message "no port in upstream" was issued; bug appeared in 0.5.0. *) Bugfix: if the "proxy_pass" and "fastcgi_pass" directives used the same servers but different ports, then these directives uses the first described port; bug appeared in 0.5.0. *) Bugfix: if the "proxy_pass" and "fastcgi_pass" directives used the unix domain sockets, then these directives used first described socket; bug appeared in 0.5.0. *) Bugfix: ngx_http_auth_basic_module ignored the user if it was in the last line in the password file and there was no the carriage return, the line feed, or the ":" symbol after the password. *) Bugfix: the $upstream_response_time variable might be equal to "0.000", although response time was more than 1 millisecond.
author Igor Sysoev <http://sysoev.ru>
date Mon, 11 Dec 2006 00:00:00 +0300
parents 0effe91f6083
children 251bcd11a5b8
comparison
equal deleted inserted replaced
261:e6ae240d5952 262:e0b1d0a6c629
67 u.portn = us->port; 67 u.portn = us->port;
68 68
69 if (ngx_inet_resolve_host(cf, &u) != NGX_OK) { 69 if (ngx_inet_resolve_host(cf, &u) != NGX_OK) {
70 if (u.err) { 70 if (u.err) {
71 ngx_log_error(NGX_LOG_EMERG, cf->log, 0, 71 ngx_log_error(NGX_LOG_EMERG, cf->log, 0,
72 "%s in upstream host \"%V\" is not found in %s:%ui", 72 "%s in upstream \"%V\" in %s:%ui",
73 u.err, &us->host, us->file_name.data, us->line); 73 u.err, &us->host, us->file_name.data, us->line);
74 } 74 }
75 75
76 return NGX_ERROR;
77 }
78
79 if (us->port == 0) {
80 ngx_log_error(NGX_LOG_EMERG, cf->log, 0,
81 "no port in upstream \"%V\" in %s:%ui",
82 &us->host, us->file_name.data, us->line);
76 return NGX_ERROR; 83 return NGX_ERROR;
77 } 84 }
78 85
79 n = u.naddrs; 86 n = u.naddrs;
80 87