Upstream: introduced a new macro for down value.

This commit is contained in:
Aleksei Bavshin authored and Aleksei Bavshin committed 2026-03-09 11:08:30 -06:00
1 parent af7137c88a
commit c5036ad30c
4 files changed
+7 -2

No files matched your search

+1 -1
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;
}
+2
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;
+1 -1
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;
}
@@ -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;