Upstream: fix tries check in ip_hash.

Make two checks for maximum number of tries consistent.
The other one checks '>' condition.
This commit is contained in:
Roman Arutyunyan 2014-05-23 13:47:05 +04:00
parent dc9b6bd43b
commit 1f5b73e644
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ ngx_http_upstream_get_ip_hash_peer(ngx_peer_connection_t *pc, void *data)
next:
if (++iphp->tries >= 20) {
if (++iphp->tries > 20) {
return iphp->get_rr_peer(pc, &iphp->rrp);
}
}