summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-09-30 15:39:02 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-09-30 15:39:02 +0000
commit797c6ef39432fc6f883261054c97802f18d34548 (patch)
treeccb50f1fe0abbf31edf25e3a6606c1806700e66d /src/http/ngx_http_upstream.h
parentd01eea1e18f059deb7528a1909619795fabc075a (diff)
downloadnginx-797c6ef39432fc6f883261054c97802f18d34548.tar.gz
nginx-797c6ef39432fc6f883261054c97802f18d34548.tar.bz2
*) ngx_http_upstream_test_next()
*) add proxy_next_upstream http_502 and http_504 *) fix http_503
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_upstream.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h
index 66c2cf3da..dd72ba86d 100644
--- a/src/http/ngx_http_upstream.h
+++ b/src/http/ngx_http_upstream.h
@@ -20,13 +20,20 @@
#define NGX_HTTP_UPSTREAM_FT_TIMEOUT 0x00000004
#define NGX_HTTP_UPSTREAM_FT_INVALID_HEADER 0x00000008
#define NGX_HTTP_UPSTREAM_FT_HTTP_500 0x00000010
-#define NGX_HTTP_UPSTREAM_FT_HTTP_503 0x00000020
-#define NGX_HTTP_UPSTREAM_FT_HTTP_404 0x00000040
-#define NGX_HTTP_UPSTREAM_FT_BUSY_LOCK 0x00000080
-#define NGX_HTTP_UPSTREAM_FT_MAX_WAITING 0x00000100
+#define NGX_HTTP_UPSTREAM_FT_HTTP_502 0x00000020
+#define NGX_HTTP_UPSTREAM_FT_HTTP_503 0x00000040
+#define NGX_HTTP_UPSTREAM_FT_HTTP_504 0x00000080
+#define NGX_HTTP_UPSTREAM_FT_HTTP_404 0x00000100
+#define NGX_HTTP_UPSTREAM_FT_BUSY_LOCK 0x00000200
+#define NGX_HTTP_UPSTREAM_FT_MAX_WAITING 0x00000400
#define NGX_HTTP_UPSTREAM_FT_NOLIVE 0x40000000
#define NGX_HTTP_UPSTREAM_FT_OFF 0x80000000
+#define NGX_HTTP_UPSTREAM_FT_STATUS (NGX_HTTP_UPSTREAM_FT_HTTP_500 \
+ |NGX_HTTP_UPSTREAM_FT_HTTP_502 \
+ |NGX_HTTP_UPSTREAM_FT_HTTP_503 \
+ |NGX_HTTP_UPSTREAM_FT_HTTP_504 \
+ |NGX_HTTP_UPSTREAM_FT_HTTP_404)
#define NGX_HTTP_UPSTREAM_INVALID_HEADER 40
@@ -267,6 +274,12 @@ struct ngx_http_upstream_s {
};
+typedef struct {
+ ngx_uint_t status;
+ ngx_uint_t mask;
+} ngx_http_upstream_next_t;
+
+
ngx_int_t ngx_http_upstream_header_variable(ngx_http_request_t *r,
ngx_http_variable_value_t *v, uintptr_t data);