diff options
Diffstat (limited to 'src/stream')
| -rw-r--r-- | src/stream/ngx_stream_upstream.c | 2 | ||||
| -rw-r--r-- | src/stream/ngx_stream_upstream_round_robin.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/stream/ngx_stream_upstream.c b/src/stream/ngx_stream_upstream.c index 6526d3c22..006672cdf 100644 --- a/src/stream/ngx_stream_upstream.c +++ b/src/stream/ngx_stream_upstream.c @@ -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; } diff --git a/src/stream/ngx_stream_upstream_round_robin.h b/src/stream/ngx_stream_upstream_round_robin.h index c168bfe80..d36c2ad06 100644 --- a/src/stream/ngx_stream_upstream_round_robin.h +++ b/src/stream/ngx_stream_upstream_round_robin.h @@ -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; |
