comparison src/stream/ngx_stream_upstream_round_robin.h @ 7750:90cc7194e993

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).
author Ruslan Ermilov <ru@nginx.com>
date Fri, 27 Nov 2020 00:01:20 +0300
parents f41c2530dd17
children
comparison
equal deleted inserted replaced
7749:ac09a57ec50d 7750:90cc7194e993
64 ngx_atomic_t rwlock; 64 ngx_atomic_t rwlock;
65 ngx_stream_upstream_rr_peers_t *zone_next; 65 ngx_stream_upstream_rr_peers_t *zone_next;
66 #endif 66 #endif
67 67
68 ngx_uint_t total_weight; 68 ngx_uint_t total_weight;
69 ngx_uint_t tries;
69 70
70 unsigned single:1; 71 unsigned single:1;
71 unsigned weighted:1; 72 unsigned weighted:1;
72 73
73 ngx_str_t *name; 74 ngx_str_t *name;