Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.h @ 6705:29bf0dbc0a77
Upstream: max_conns.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 22 Sep 2016 19:32:47 +0300 |
parents | edcd9303a4d3 |
children | 4080f94a996f |
comparison
equal
deleted
inserted
replaced
6704:a44ba757851d | 6705:29bf0dbc0a77 |
---|---|
93 typedef struct { | 93 typedef struct { |
94 ngx_str_t name; | 94 ngx_str_t name; |
95 ngx_addr_t *addrs; | 95 ngx_addr_t *addrs; |
96 ngx_uint_t naddrs; | 96 ngx_uint_t naddrs; |
97 ngx_uint_t weight; | 97 ngx_uint_t weight; |
98 ngx_uint_t max_conns; | |
98 ngx_uint_t max_fails; | 99 ngx_uint_t max_fails; |
99 time_t fail_timeout; | 100 time_t fail_timeout; |
100 | 101 |
101 unsigned down:1; | 102 unsigned down:1; |
102 unsigned backup:1; | 103 unsigned backup:1; |
107 #define NGX_HTTP_UPSTREAM_WEIGHT 0x0002 | 108 #define NGX_HTTP_UPSTREAM_WEIGHT 0x0002 |
108 #define NGX_HTTP_UPSTREAM_MAX_FAILS 0x0004 | 109 #define NGX_HTTP_UPSTREAM_MAX_FAILS 0x0004 |
109 #define NGX_HTTP_UPSTREAM_FAIL_TIMEOUT 0x0008 | 110 #define NGX_HTTP_UPSTREAM_FAIL_TIMEOUT 0x0008 |
110 #define NGX_HTTP_UPSTREAM_DOWN 0x0010 | 111 #define NGX_HTTP_UPSTREAM_DOWN 0x0010 |
111 #define NGX_HTTP_UPSTREAM_BACKUP 0x0020 | 112 #define NGX_HTTP_UPSTREAM_BACKUP 0x0020 |
113 #define NGX_HTTP_UPSTREAM_MAX_CONNS 0x0100 | |
112 | 114 |
113 | 115 |
114 struct ngx_http_upstream_srv_conf_s { | 116 struct ngx_http_upstream_srv_conf_s { |
115 ngx_http_upstream_peer_t peer; | 117 ngx_http_upstream_peer_t peer; |
116 void **srv_conf; | 118 void **srv_conf; |