From fd9e74f656b3a7683424304da3bc859988407acf Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 22 Sep 2016 19:32:45 +0300 Subject: Upstream: removed the quick recovery mechanism. Its usefulness it questionable, and it interacts badly with max_conns. --- src/http/modules/ngx_http_upstream_least_conn_module.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/http/modules') diff --git a/src/http/modules/ngx_http_upstream_least_conn_module.c b/src/http/modules/ngx_http_upstream_least_conn_module.c index a250d4f2c..00644a000 100644 --- a/src/http/modules/ngx_http_upstream_least_conn_module.c +++ b/src/http/modules/ngx_http_upstream_least_conn_module.c @@ -272,12 +272,6 @@ failed: ngx_http_upstream_rr_peers_wlock(peers); } - /* all peers failed, mark them as live for quick recovery */ - - for (peer = peers->peer; peer; peer = peer->next) { - peer->fails = 0; - } - ngx_http_upstream_rr_peers_unlock(peers); pc->name = peers->name; -- cgit