# HG changeset patch # User Ruslan Ermilov # Date 1474561965 -10800 # Node ID a44ba757851d595f300cc36de2263e569723d79d # Parent edcd9303a4d3410340a0d31487f01732df662d76 Upstream: removed the quick recovery mechanism. Its usefulness it questionable, and it interacts badly with max_conns. diff -r edcd9303a4d3 -r a44ba757851d src/http/modules/ngx_http_upstream_least_conn_module.c --- a/src/http/modules/ngx_http_upstream_least_conn_module.c Thu Sep 22 19:32:26 2016 +0300 +++ b/src/http/modules/ngx_http_upstream_least_conn_module.c Thu Sep 22 19:32:45 2016 +0300 @@ -272,12 +272,6 @@ 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; diff -r edcd9303a4d3 -r a44ba757851d src/http/ngx_http_upstream_round_robin.c --- a/src/http/ngx_http_upstream_round_robin.c Thu Sep 22 19:32:26 2016 +0300 +++ b/src/http/ngx_http_upstream_round_robin.c Thu Sep 22 19:32:45 2016 +0300 @@ -485,12 +485,6 @@ 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; diff -r edcd9303a4d3 -r a44ba757851d src/stream/ngx_stream_upstream_least_conn_module.c --- a/src/stream/ngx_stream_upstream_least_conn_module.c Thu Sep 22 19:32:26 2016 +0300 +++ b/src/stream/ngx_stream_upstream_least_conn_module.c Thu Sep 22 19:32:45 2016 +0300 @@ -268,12 +268,6 @@ ngx_stream_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_stream_upstream_rr_peers_unlock(peers); pc->name = peers->name; diff -r edcd9303a4d3 -r a44ba757851d src/stream/ngx_stream_upstream_round_robin.c --- a/src/stream/ngx_stream_upstream_round_robin.c Thu Sep 22 19:32:26 2016 +0300 +++ b/src/stream/ngx_stream_upstream_round_robin.c Thu Sep 22 19:32:45 2016 +0300 @@ -491,12 +491,6 @@ ngx_stream_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_stream_upstream_rr_peers_unlock(peers); pc->name = peers->name;