Mercurial > hg > nginx
comparison src/stream/ngx_stream_upstream_least_conn_module.c @ 6704:a44ba757851d
Upstream: removed the quick recovery mechanism.
Its usefulness it questionable, and it interacts badly with max_conns.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 22 Sep 2016 19:32:45 +0300 |
parents | 914d8a63dbad |
children | 29bf0dbc0a77 |
comparison
equal
deleted
inserted
replaced
6703:edcd9303a4d3 | 6704:a44ba757851d |
---|---|
266 } | 266 } |
267 | 267 |
268 ngx_stream_upstream_rr_peers_wlock(peers); | 268 ngx_stream_upstream_rr_peers_wlock(peers); |
269 } | 269 } |
270 | 270 |
271 /* all peers failed, mark them as live for quick recovery */ | |
272 | |
273 for (peer = peers->peer; peer; peer = peer->next) { | |
274 peer->fails = 0; | |
275 } | |
276 | |
277 ngx_stream_upstream_rr_peers_unlock(peers); | 271 ngx_stream_upstream_rr_peers_unlock(peers); |
278 | 272 |
279 pc->name = peers->name; | 273 pc->name = peers->name; |
280 | 274 |
281 return NGX_BUSY; | 275 return NGX_BUSY; |