summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2014-09-12 18:50:47 +0400
committerRoman Arutyunyan <arut@nginx.com>2014-09-12 18:50:47 +0400
commit02ce6c415f07ea8d7fa6b59a17ee2f02e77ab66b (patch)
tree9d7fbdf388e15bfe1f2c4577e0d786156c5db77a /src/http/ngx_http_upstream.h
parentcfc3db1972f1eb96accaf4c04095912e176aecd3 (diff)
downloadnginx-02ce6c415f07ea8d7fa6b59a17ee2f02e77ab66b.tar.gz
nginx-02ce6c415f07ea8d7fa6b59a17ee2f02e77ab66b.tar.bz2
Upstream: limited next_upstream time and tries (ticket #544).
The new directives {proxy,fastcgi,scgi,uwsgi,memcached}_next_upstream_tries and {proxy,fastcgi,scgi,uwsgi,memcached}_next_upstream_timeout limit the number of upstreams tried and the maximum time spent for these tries when searching for a valid upstream.
Diffstat (limited to 'src/http/ngx_http_upstream.h')
-rw-r--r--src/http/ngx_http_upstream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h
index dafb5a319..2ee899d83 100644
--- a/src/http/ngx_http_upstream.h
+++ b/src/http/ngx_http_upstream.h
@@ -136,6 +136,7 @@ typedef struct {
ngx_msec_t send_timeout;
ngx_msec_t read_timeout;
ngx_msec_t timeout;
+ ngx_msec_t next_upstream_timeout;
size_t send_lowat;
size_t buffer_size;
@@ -153,6 +154,7 @@ typedef struct {
ngx_uint_t ignore_headers;
ngx_uint_t next_upstream;
ngx_uint_t store_access;
+ ngx_uint_t next_upstream_tries;
ngx_flag_t buffering;
ngx_flag_t pass_request_headers;
ngx_flag_t pass_request_body;