comparison src/http/ngx_http_upstream_round_robin.c @ 896:f247db60fc85

fix fastcgi and memcached upstreams
author Igor Sysoev <igor@sysoev.ru>
date Mon, 11 Dec 2006 08:59:30 +0000
parents 4d68c486fcb0
children a0310ac2814f
comparison
equal deleted inserted replaced
895:49d03c183ad2 896:f247db60fc85
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