comparison src/http/ngx_http_upstream_round_robin.c @ 334:3f511163d908 NGINX_0_6_11

nginx 0.6.11 *) Bugfix: active connection counter always increased if mail proxy was used. *) Bugfix: if backend returned response header only using non-buffered proxy, then nginx closed backend connection on timeout. *) Bugfix: nginx did not support several "Connection" request header lines. *) Bugfix: if the "max_fails" was set for upstream server, then after first failure server weight was always one; bug appeared in 0.6.6.
author Igor Sysoev <http://sysoev.ru>
date Tue, 11 Sep 2007 00:00:00 +0400
parents 3a91bfeffaba
children 1c519aff5c0c
comparison
equal deleted inserted replaced
333:1372b2a4ec2f 334:3f511163d908
512 512
513 return n; 513 return n;
514 } 514 }
515 515
516 for (i = 0; i < peers->number; i++) { 516 for (i = 0; i < peers->number; i++) {
517 if (peer[i].fails == 0) { 517 if (peer->max_fails == 0 || peer->fails < peer->max_fails) {
518 peer[i].current_weight = peer[i].weight; 518 peer[i].current_weight += peer[i].weight;
519 519
520 } else { 520 } else {
521 /* 1 allows to go to quick recovery when all peers failed */ 521 /* 1 allows to go to quick recovery when all peers failed */
522 peer[i].current_weight = 1; 522 peer[i].current_weight = 1;
523 } 523 }