diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-03-06 11:02:35 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-03-06 11:02:35 +0000 |
commit | bd99c49794fdd82dc3a569a46e77d58269900a2c (patch) | |
tree | 53e3551f7217539e2fe765cfa3175560646a81c4 /src | |
parent | b32d04f07cc5912f5c7fe37a7944a39a03d2cd59 (diff) | |
download | nginx-bd99c49794fdd82dc3a569a46e77d58269900a2c.tar.gz nginx-bd99c49794fdd82dc3a569a46e77d58269900a2c.zip |
avoid endless loop
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_upstream_ip_hash_module.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http/modules/ngx_http_upstream_ip_hash_module.c b/src/http/modules/ngx_http_upstream_ip_hash_module.c index e0cf8afc1..87e5ac4d2 100644 --- a/src/http/modules/ngx_http_upstream_ip_hash_module.c +++ b/src/http/modules/ngx_http_upstream_ip_hash_module.c @@ -179,11 +179,10 @@ ngx_http_upstream_get_ip_hash_peer(ngx_peer_connection_t *pc, void *data) peer->fails = 0; break; } - - } else { - iphp->rrp.tried[n] |= m; } + iphp->rrp.tried[n] |= m; + /* ngx_unlock_mutex(iphp->rrp.peers->mutex); */ pc->tries--; |