Mercurial > hg > nginx
changeset 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 | b579676ec6b2 |
children | 4f7dca9c37f0 |
files | src/http/ngx_http_upstream.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Wed Dec 06 15:39:08 2006 +0000 +++ b/src/http/ngx_http_upstream.c Mon Dec 11 08:25:03 2006 +0000 @@ -2843,7 +2843,8 @@ uscfp = umcf->upstreams.elts; for (i = 0; i < umcf->upstreams.nelts; i++) { - if (uscfp[i]->host.len != u->host.len + if (uscfp[i]->port != u->portn + || uscfp[i]->host.len != u->host.len || ngx_strncasecmp(uscfp[i]->host.data, u->host.data, u->host.len) != 0) {