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 7808ac0d42
commit 3e279a8eb4

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);
}
}