comparison src/http/ngx_http_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 e38e9c50a40e
children
comparison
equal deleted inserted replaced
7749:ac09a57ec50d 7750:90cc7194e993
66 ngx_atomic_t rwlock; 66 ngx_atomic_t rwlock;
67 ngx_http_upstream_rr_peers_t *zone_next; 67 ngx_http_upstream_rr_peers_t *zone_next;
68 #endif 68 #endif
69 69
70 ngx_uint_t total_weight; 70 ngx_uint_t total_weight;
71 ngx_uint_t tries;
71 72
72 unsigned single:1; 73 unsigned single:1;
73 unsigned weighted:1; 74 unsigned weighted:1;
74 75
75 ngx_str_t *name; 76 ngx_str_t *name;