mirror of
https://github.com/nginx/nginx.git
synced 2024-12-03 04:19:06 +08:00
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
7808ac0d42
commit
3e279a8eb4
@ -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
Block a user