Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_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 |
---|---|
270 } | 270 } |
271 | 271 |
272 ngx_http_upstream_rr_peers_wlock(peers); | 272 ngx_http_upstream_rr_peers_wlock(peers); |
273 } | 273 } |
274 | 274 |
275 /* all peers failed, mark them as live for quick recovery */ | |
276 | |
277 for (peer = peers->peer; peer; peer = peer->next) { | |
278 peer->fails = 0; | |
279 } | |
280 | |
281 ngx_http_upstream_rr_peers_unlock(peers); | 275 ngx_http_upstream_rr_peers_unlock(peers); |
282 | 276 |
283 pc->name = peers->name; | 277 pc->name = peers->name; |
284 | 278 |
285 return NGX_BUSY; | 279 return NGX_BUSY; |