Mercurial > hg > nginx
changeset 1568:771c4071f5f6
use real weight, do not downground to one
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 15 Oct 2007 10:15:54 +0000 |
parents | 31d4278d51c0 |
children | 537b6ef014c4 |
files | src/http/ngx_http_upstream_round_robin.c |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream_round_robin.c Mon Oct 15 09:46:36 2007 +0000 +++ b/src/http/ngx_http_upstream_round_robin.c Mon Oct 15 10:15:54 2007 +0000 @@ -511,13 +511,7 @@ } for (i = 0; i < peers->number; i++) { - if (peer[i].max_fails == 0 || peer[i].fails < peer[i].max_fails) { - peer[i].current_weight += peer[i].weight; - - } else { - /* 1 allows to go to quick recovery when all peers failed */ - peer[i].current_weight = 1; - } + peer[i].current_weight += peer[i].weight; } } }