Mercurial > hg > nginx
diff src/http/ngx_http_upstream.h @ 5832:d09b689911ac
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.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 12 Sep 2014 18:50:47 +0400 |
parents | d0ce06cb9be1 |
children | 2aff40b3dea2 |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.h Fri Sep 12 18:50:46 2014 +0400 +++ b/src/http/ngx_http_upstream.h Fri Sep 12 18:50:47 2014 +0400 @@ -136,6 +136,7 @@ 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 @@ 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;