mirror of
https://github.com/nginx/nginx.git
synced 2026-09-01 02:58:40 +00:00
fix case when server was marked as down after one failure
This commit is contained in:
parent
4efa705cc0
commit
7a69774721
1 changed files with 1 additions and 1 deletions
|
|
@ -514,7 +514,7 @@ ngx_http_upstream_get_peer(ngx_http_upstream_rr_peers_t *peers)
|
|||
}
|
||||
|
||||
for (i = 0; i < peers->number; i++) {
|
||||
if (peer[i].fails == 0) {
|
||||
if (peer->max_fails == 0 || peer->fails < peer->max_fails) {
|
||||
peer[i].current_weight += peer[i].weight;
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue