comparison src/stream/ngx_stream_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
19 #define NGX_STREAM_UPSTREAM_WEIGHT 0x0002 19 #define NGX_STREAM_UPSTREAM_WEIGHT 0x0002
20 #define NGX_STREAM_UPSTREAM_MAX_FAILS 0x0004 20 #define NGX_STREAM_UPSTREAM_MAX_FAILS 0x0004
21 #define NGX_STREAM_UPSTREAM_FAIL_TIMEOUT 0x0008 21 #define NGX_STREAM_UPSTREAM_FAIL_TIMEOUT 0x0008
22 #define NGX_STREAM_UPSTREAM_DOWN 0x0010 22 #define NGX_STREAM_UPSTREAM_DOWN 0x0010
23 #define NGX_STREAM_UPSTREAM_BACKUP 0x0020 23 #define NGX_STREAM_UPSTREAM_BACKUP 0x0020
24 #define NGX_STREAM_UPSTREAM_MAX_CONNS 0x0100
24 25
25 26
26 typedef struct { 27 typedef struct {
27 ngx_array_t upstreams; 28 ngx_array_t upstreams;
28 /* ngx_stream_upstream_srv_conf_t */ 29 /* ngx_stream_upstream_srv_conf_t */
48 typedef struct { 49 typedef struct {
49 ngx_str_t name; 50 ngx_str_t name;
50 ngx_addr_t *addrs; 51 ngx_addr_t *addrs;
51 ngx_uint_t naddrs; 52 ngx_uint_t naddrs;
52 ngx_uint_t weight; 53 ngx_uint_t weight;
54 ngx_uint_t max_conns;
53 ngx_uint_t max_fails; 55 ngx_uint_t max_fails;
54 time_t fail_timeout; 56 time_t fail_timeout;
55 57
56 unsigned down:1; 58 unsigned down:1;
57 unsigned backup:1; 59 unsigned backup:1;