Mercurial > hg > nginx-quic
comparison src/http/ngx_http_upstream_round_robin.h @ 1378:0be898896d1a
backup upstream servers
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 09 Aug 2007 13:54:33 +0000 |
parents | 8f5b5641966c |
children | 13f8dec720b5 |
comparison
equal
deleted
inserted
replaced
1377:0d57c150115b | 1378:0be898896d1a |
---|---|
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 ngx_http_upstream_rr_peers_s ngx_http_upstream_rr_peers_t; |
39 | |
40 struct ngx_http_upstream_rr_peers_s { | |
41 ngx_uint_t single; /* unsigned single:1; */ | |
39 ngx_uint_t number; | 42 ngx_uint_t number; |
40 ngx_uint_t last_cached; | 43 ngx_uint_t last_cached; |
41 | 44 |
42 /* ngx_mutex_t *mutex; */ | 45 /* ngx_mutex_t *mutex; */ |
43 ngx_connection_t **cached; | 46 ngx_connection_t **cached; |
44 | 47 |
45 ngx_str_t *name; | 48 ngx_str_t *name; |
46 | 49 |
50 ngx_http_upstream_rr_peers_t *next; | |
51 | |
47 ngx_http_upstream_rr_peer_t peer[1]; | 52 ngx_http_upstream_rr_peer_t peer[1]; |
48 } ngx_http_upstream_rr_peers_t; | 53 }; |
49 | 54 |
50 | 55 |
51 typedef struct { | 56 typedef struct { |
52 ngx_http_upstream_rr_peers_t *peers; | 57 ngx_http_upstream_rr_peers_t *peers; |
53 ngx_uint_t current; | 58 ngx_uint_t current; |