diff options
author | Ruslan Ermilov <ru@nginx.com> | 2016-09-22 19:32:45 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2016-09-22 19:32:45 +0300 |
commit | fd9e74f656b3a7683424304da3bc859988407acf (patch) | |
tree | 4d6eeed1176f2b832ecaf399a4843b7f5128634f /src/stream/ngx_stream_upstream_least_conn_module.c | |
parent | 4d4542c8380abfa413a8f352248109f374e968c9 (diff) | |
download | nginx-fd9e74f656b3a7683424304da3bc859988407acf.tar.gz nginx-fd9e74f656b3a7683424304da3bc859988407acf.zip |
Upstream: removed the quick recovery mechanism.
Its usefulness it questionable, and it interacts badly with max_conns.
Diffstat (limited to 'src/stream/ngx_stream_upstream_least_conn_module.c')
-rw-r--r-- | src/stream/ngx_stream_upstream_least_conn_module.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/stream/ngx_stream_upstream_least_conn_module.c b/src/stream/ngx_stream_upstream_least_conn_module.c index 3c8a0b003..1213bb53b 100644 --- a/src/stream/ngx_stream_upstream_least_conn_module.c +++ b/src/stream/ngx_stream_upstream_least_conn_module.c @@ -268,12 +268,6 @@ failed: 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; |