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:
parent
dc9b6bd43b
commit
1f5b73e644
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue