summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.h
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2016-09-22 19:32:47 +0300
committerRuslan Ermilov <ru@nginx.com>2016-09-22 19:32:47 +0300
commitf674f32c09c9938d5f2b19509166e5c5e28a9e3c (patch)
tree225a53166111dd4f818b83a4d603aab4d187e52e /src/http/ngx_http_upstream.h
parentfd9e74f656b3a7683424304da3bc859988407acf (diff)
downloadnginx-f674f32c09c9938d5f2b19509166e5c5e28a9e3c.tar.gz
nginx-f674f32c09c9938d5f2b19509166e5c5e28a9e3c.tar.bz2
Upstream: max_conns.
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 397c8d574..d5246d117 100644
--- a/src/http/ngx_http_upstream.h
+++ b/src/http/ngx_http_upstream.h
@@ -95,6 +95,7 @@ typedef struct {
ngx_addr_t *addrs;
ngx_uint_t naddrs;
ngx_uint_t weight;
+ ngx_uint_t max_conns;
ngx_uint_t max_fails;
time_t fail_timeout;
@@ -109,6 +110,7 @@ typedef struct {
#define NGX_HTTP_UPSTREAM_FAIL_TIMEOUT 0x0008
#define NGX_HTTP_UPSTREAM_DOWN 0x0010
#define NGX_HTTP_UPSTREAM_BACKUP 0x0020
+#define NGX_HTTP_UPSTREAM_MAX_CONNS 0x0100
struct ngx_http_upstream_srv_conf_s {