Mercurial > hg > nginx
comparison src/http/ngx_http_upstream_round_robin.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 |
---|---|
483 } | 483 } |
484 | 484 |
485 ngx_http_upstream_rr_peers_wlock(peers); | 485 ngx_http_upstream_rr_peers_wlock(peers); |
486 } | 486 } |
487 | 487 |
488 /* all peers failed, mark them as live for quick recovery */ | |
489 | |
490 for (peer = peers->peer; peer; peer = peer->next) { | |
491 peer->fails = 0; | |
492 } | |
493 | |
494 ngx_http_upstream_rr_peers_unlock(peers); | 488 ngx_http_upstream_rr_peers_unlock(peers); |
495 | 489 |
496 pc->name = peers->name; | 490 pc->name = peers->name; |
497 | 491 |
498 return NGX_BUSY; | 492 return NGX_BUSY; |