comparison src/http/ngx_http_upstream.c @ 893:f029e69eb010

TCP upstreams always used the first TCP upstream with the same name
author Igor Sysoev <igor@sysoev.ru>
date Mon, 11 Dec 2006 08:25:03 +0000
parents a9a7e4b1a72b
children cc4273a2597e
comparison
equal deleted inserted replaced
892:b579676ec6b2 893:f029e69eb010
2841 umcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_upstream_module); 2841 umcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_upstream_module);
2842 2842
2843 uscfp = umcf->upstreams.elts; 2843 uscfp = umcf->upstreams.elts;
2844 2844
2845 for (i = 0; i < umcf->upstreams.nelts; i++) { 2845 for (i = 0; i < umcf->upstreams.nelts; i++) {
2846 if (uscfp[i]->host.len != u->host.len 2846 if (uscfp[i]->port != u->portn
2847 || uscfp[i]->host.len != u->host.len
2847 || ngx_strncasecmp(uscfp[i]->host.data, u->host.data, u->host.len) 2848 || ngx_strncasecmp(uscfp[i]->host.data, u->host.data, u->host.len)
2848 != 0) 2849 != 0)
2849 { 2850 {
2850 continue; 2851 continue;
2851 } 2852 }