Mercurial > hg > nginx-quic
comparison src/event/ngx_event_connect.h @ 419:47709bff4468
nginx-0.0.10-2004-09-09-19:40:48 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 09 Sep 2004 15:40:48 +0000 |
parents | 41437e4fd9b4 |
children | da8c5707af39 |
comparison
equal
deleted
inserted
replaced
418:cf072d26d6d6 | 419:47709bff4468 |
---|---|
11 | 11 |
12 | 12 |
13 typedef struct { | 13 typedef struct { |
14 in_addr_t addr; | 14 in_addr_t addr; |
15 ngx_str_t host; | 15 ngx_str_t host; |
16 int port; | 16 in_port_t port; |
17 ngx_str_t addr_port_text; | 17 ngx_str_t addr_port_text; |
18 | 18 |
19 int fails; | 19 ngx_int_t fails; |
20 time_t accessed; | 20 time_t accessed; |
21 } ngx_peer_t; | 21 } ngx_peer_t; |
22 | 22 |
23 | 23 |
24 typedef struct { | 24 typedef struct { |
25 int current; | 25 ngx_int_t current; |
26 int number; | 26 ngx_int_t number; |
27 int max_fails; | 27 ngx_int_t max_fails; |
28 int fail_timeout; | 28 ngx_int_t fail_timeout; |
29 int last_cached; | 29 ngx_int_t last_cached; |
30 | 30 |
31 /* ngx_mutex_t *mutex; */ | 31 /* ngx_mutex_t *mutex; */ |
32 ngx_connection_t **cached; | 32 ngx_connection_t **cached; |
33 | 33 |
34 ngx_peer_t peers[1]; | 34 ngx_peer_t peers[1]; |
35 } ngx_peers_t; | 35 } ngx_peers_t; |
36 | 36 |
37 | 37 |
38 typedef struct { | 38 typedef struct { |
39 ngx_peers_t *peers; | 39 ngx_peers_t *peers; |
40 int cur_peer; | 40 ngx_int_t cur_peer; |
41 int tries; | 41 ngx_int_t tries; |
42 | 42 |
43 ngx_connection_t *connection; | 43 ngx_connection_t *connection; |
44 #if (NGX_THREADS) | 44 #if (NGX_THREADS) |
45 ngx_atomic_t *lock; | 45 ngx_atomic_t *lock; |
46 #endif | 46 #endif |