| commit | bd99c49794fdd82dc3a569a46e77d58269900a2c | [log] [tgz] |
|---|---|---|
| author | Igor Sysoev <igor@sysoev.ru> | Tue Mar 06 11:02:35 2007 +0000 |
| committer | Igor Sysoev <igor@sysoev.ru> | Tue Mar 06 11:02:35 2007 +0000 |
| tree | 53e3551f7217539e2fe765cfa3175560646a81c4 | |
| parent | b32d04f07cc5912f5c7fe37a7944a39a03d2cd59 [diff] |
avoid endless loop
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 e0cf8af..87e5ac4 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 @@ peer->fails = 0; break; } - - } else { - iphp->rrp.tried[n] |= m; } + iphp->rrp.tried[n] |= m; + /* ngx_unlock_mutex(iphp->rrp.peers->mutex); */ pc->tries--;