]> git.kaiwu.me - nginx.git/commit
Upstream: excluded down servers from the next_upstream tries.
authorRuslan Ermilov <ru@nginx.com>
Thu, 26 Nov 2020 21:01:20 +0000 (00:01 +0300)
committerRuslan Ermilov <ru@nginx.com>
Thu, 26 Nov 2020 21:01:20 +0000 (00:01 +0300)
commitcfa669151e605410cfb57cc70b0e4023f4777602
tree3d62e43453a7de2c303b9b1e59240426e3331fbc
parent4f7a9ec7a970e9b8b5b89748c73f4912b2315be3
Upstream: excluded down servers from the next_upstream tries.

Previously, the number of next_upstream tries included servers marked
as "down", resulting in "no live upstreams" with the code 502 instead
of the code derived from an attempt to connect to the last tried "up"
server (ticket #2096).
src/http/ngx_http_upstream_round_robin.c
src/http/ngx_http_upstream_round_robin.h
src/stream/ngx_stream_upstream_round_robin.c
src/stream/ngx_stream_upstream_round_robin.h