mirror of
https://github.com/nginx/nginx.git
synced 2026-10-25 07:07:42 -05:00
Upstream: introduced a new macro for down value.
This commit is contained in:
1 parent
af7137c88a
commit
c5036ad30c
4 files changed
+7
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user