Mercurial > hg > nginx-vendor-0-8
comparison src/http/ngx_http_upstream_round_robin.h @ 324:f7cd062ee035 NGINX_0_6_6
nginx 0.6.6
*) Feature: the --sysconfdir=PATH option in configure.
*) Feature: named locations.
*) Feature: the $args variable can be set with the "set" directive.
*) Feature: the $is_args variable.
*) Bugfix: fair big weight upstream balancer.
*) Bugfix: if a client has closed connection to mail proxy then nginx
might not close connection to backend.
*) Bugfix: if the same host without specified port was used as backend
for HTTP and HTTPS, then nginx used only one port - 80 or 443.
*) Bugfix: fix building on Solaris/amd64 by Sun Studio 11 and early
versions; bug appeared in 0.6.4.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 30 Jul 2007 00:00:00 +0400 |
parents | fc223117327f |
children | 9fc4ab6673f9 |
comparison
equal
deleted
inserted
replaced
323:7e977a664d91 | 324:f7cd062ee035 |
---|---|
16 typedef struct { | 16 typedef struct { |
17 struct sockaddr *sockaddr; | 17 struct sockaddr *sockaddr; |
18 socklen_t socklen; | 18 socklen_t socklen; |
19 ngx_str_t name; | 19 ngx_str_t name; |
20 | 20 |
21 ngx_uint_t current_weight; | 21 ngx_int_t current_weight; |
22 ngx_uint_t weight; | 22 ngx_int_t weight; |
23 | 23 |
24 ngx_uint_t fails; | 24 ngx_uint_t fails; |
25 time_t accessed; | 25 time_t accessed; |
26 | 26 |
27 ngx_uint_t max_fails; | 27 ngx_uint_t max_fails; |
28 time_t fail_timeout; | 28 time_t fail_timeout; |
29 | 29 |
30 ngx_uint_t down; /* unsigned down:1; */ | 30 ngx_uint_t down; /* unsigned down:1; */ |
31 | 31 |
32 #if (NGX_SSL) | 32 #if (NGX_HTTP_SSL) |
33 ngx_ssl_session_t *ssl_session; /* local to a process */ | 33 ngx_ssl_session_t *ssl_session; /* local to a process */ |
34 #endif | 34 #endif |
35 } ngx_http_upstream_rr_peer_t; | 35 } ngx_http_upstream_rr_peer_t; |
36 | 36 |
37 | 37 |
38 typedef struct { | 38 typedef struct { |
39 ngx_uint_t current; | |
40 | |
41 ngx_uint_t number; | 39 ngx_uint_t number; |
42 ngx_uint_t last_cached; | 40 ngx_uint_t last_cached; |
43 | 41 |
44 /* ngx_mutex_t *mutex; */ | 42 /* ngx_mutex_t *mutex; */ |
45 ngx_connection_t **cached; | 43 ngx_connection_t **cached; |