]> git.kaiwu.me - nginx.git/commit
Upstream: fixed fail_timeout and max_fails > 1.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 21 May 2013 17:47:50 +0000 (21:47 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 21 May 2013 17:47:50 +0000 (21:47 +0400)
commit93b61fad8059f106423ad5d2b6372d16de2e01dd
tree4ecc4d527701f410f30b569984c7b52f1693fff2
parent4ca32c31a0f842f2980c2d6a6584d6f680bfe839
Upstream: fixed fail_timeout and max_fails > 1.

Due to peer->checked always set since rev. c90801720a0c (1.3.0)
by round-robin and least_conn balancers (ip_hash not affected),
the code in ngx_http_upstream_free_round_robin_peer() function
incorrectly reset peer->fails too often.

Reported by Dmitry Popov,
http://mailman.nginx.org/pipermail/nginx-devel/2013-May/003720.html
src/http/modules/ngx_http_upstream_least_conn_module.c
src/http/ngx_http_upstream_round_robin.c