Mercurial > hg > nginx
diff src/http/modules/ngx_http_upstream_ip_hash_module.c @ 1129:44f7e6f36b8c
avoid endless loop
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 06 Mar 2007 11:02:35 +0000 |
parents | f88651afad40 |
children | 324a5a3fe27f |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_upstream_ip_hash_module.c +++ b/src/http/modules/ngx_http_upstream_ip_hash_module.c @@ -179,10 +179,9 @@ ngx_http_upstream_get_ip_hash_peer(ngx_p peer->fails = 0; break; } + } - } else { - iphp->rrp.tried[n] |= m; - } + iphp->rrp.tried[n] |= m; /* ngx_unlock_mutex(iphp->rrp.peers->mutex); */