mirror of
https://github.com/nginx/nginx.git
synced 2026-09-01 19:10:52 +00:00
fix long loop
This commit is contained in:
parent
0b72c93a69
commit
cc07609d11
1 changed files with 2 additions and 2 deletions
|
|
@ -408,7 +408,7 @@ ngx_http_upstream_get_round_robin_peer(ngx_peer_connection_t *pc, void *data)
|
|||
pc->tries += rrp->peers->next->number;
|
||||
|
||||
n = rrp->peers->next->number / (8 * sizeof(uintptr_t)) + 1;
|
||||
for (i = 0; i < n; n++) {
|
||||
for (i = 0; i < n; i++) {
|
||||
rrp->tried[i] = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -429,7 +429,7 @@ failed:
|
|||
pc->tries = rrp->peers->number;
|
||||
|
||||
n = rrp->peers->number / (8 * sizeof(uintptr_t)) + 1;
|
||||
for (i = 0; i < n; n++) {
|
||||
for (i = 0; i < n; i++) {
|
||||
rrp->tried[i] = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue