From cc07609d117deb1197dac85327c3bb31bd7aa7d9 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 14 Aug 2007 13:35:52 +0000 Subject: [PATCH] fix long loop --- src/http/ngx_http_upstream_round_robin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http/ngx_http_upstream_round_robin.c b/src/http/ngx_http_upstream_round_robin.c index ccb2eefab..bdeeb16c8 100644 --- a/src/http/ngx_http_upstream_round_robin.c +++ b/src/http/ngx_http_upstream_round_robin.c @@ -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; }