diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-07-28 16:04:01 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-07-28 16:04:01 +0000 |
| commit | d12a5718d8a405d1c991d56f7b7943a62883355b (patch) | |
| tree | d84cd98dc7d8fe2939a06fc40ad4f8c82efe6ab1 /src/http/ngx_http_upstream_round_robin.h | |
| parent | 07c1f2f9aad653344a33f6b07ecdf15f6cad76dc (diff) | |
| download | nginx-d12a5718d8a405d1c991d56f7b7943a62883355b.tar.gz nginx-d12a5718d8a405d1c991d56f7b7943a62883355b.tar.bz2 | |
fair upstream weight balancer
Diffstat (limited to 'src/http/ngx_http_upstream_round_robin.h')
| -rw-r--r-- | src/http/ngx_http_upstream_round_robin.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/http/ngx_http_upstream_round_robin.h b/src/http/ngx_http_upstream_round_robin.h index 2e2bf132f..15e69153a 100644 --- a/src/http/ngx_http_upstream_round_robin.h +++ b/src/http/ngx_http_upstream_round_robin.h @@ -18,8 +18,8 @@ typedef struct { socklen_t socklen; ngx_str_t name; - ngx_uint_t current_weight; - ngx_uint_t weight; + ngx_int_t current_weight; + ngx_int_t weight; ngx_uint_t fails; time_t accessed; @@ -29,15 +29,13 @@ typedef struct { ngx_uint_t down; /* unsigned down:1; */ -#if (NGX_SSL) +#if (NGX_HTTP_SSL) ngx_ssl_session_t *ssl_session; /* local to a process */ #endif } ngx_http_upstream_rr_peer_t; typedef struct { - ngx_uint_t current; - ngx_uint_t number; ngx_uint_t last_cached; |
