Upstream: introduced a new macro for down value.

This commit is contained in:
Aleksei Bavshin 2026-03-04 11:35:41 -08:00 committed by Aleksei Bavshin
parent af7137c88a
commit c5036ad30c
4 changed files with 7 additions and 2 deletions

View file

@ -6530,7 +6530,7 @@ ngx_http_upstream_server(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
goto not_supported;
}
us->down = 1;
us->down = NGX_HTTP_UPSTREAM_FAILED;
continue;
}

View file

@ -18,6 +18,8 @@
#define NGX_HTTP_UPSTREAM_SID_LEN 32 /* md5 in hex */
#endif
#define NGX_HTTP_UPSTREAM_FAILED 1
typedef struct ngx_http_upstream_rr_peers_s ngx_http_upstream_rr_peers_t;
typedef struct ngx_http_upstream_rr_peer_s ngx_http_upstream_rr_peer_t;

View file

@ -536,7 +536,7 @@ ngx_stream_upstream_server(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
goto not_supported;
}
us->down = 1;
us->down = NGX_STREAM_UPSTREAM_FAILED;
continue;
}

View file

@ -14,6 +14,9 @@
#include <ngx_stream.h>
#define NGX_STREAM_UPSTREAM_FAILED 1
typedef struct ngx_stream_upstream_rr_peers_s ngx_stream_upstream_rr_peers_t;
typedef struct ngx_stream_upstream_rr_peer_s ngx_stream_upstream_rr_peer_t;