mirror of
https://github.com/nginx/nginx.git
synced 2026-05-13 09:36:42 +00:00
Upstream: introduced a new macro for down value.
This commit is contained in:
parent
af7137c88a
commit
c5036ad30c
4 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue