Mercurial > hg > nginx-vendor-current
comparison src/event/ngx_event_connect.h @ 200:d2ae1c9f1fd3 NGINX_0_3_47
nginx 0.3.47
*) Feature: the "upstream" directive.
*) Change: now the "\" escape symbol in the "\"" and "\'" pairs in the
SSI command is always removed.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 23 May 2006 00:00:00 +0400 |
parents | df17fbafec8f |
children | 0effe91f6083 |
comparison
equal
deleted
inserted
replaced
199:869664706c09 | 200:d2ae1c9f1fd3 |
---|---|
9 | 9 |
10 | 10 |
11 #include <ngx_config.h> | 11 #include <ngx_config.h> |
12 #include <ngx_core.h> | 12 #include <ngx_core.h> |
13 #include <ngx_event.h> | 13 #include <ngx_event.h> |
14 | |
15 | |
16 typedef struct { | |
17 struct sockaddr *sockaddr; | |
18 socklen_t socklen; | |
19 | |
20 ngx_str_t name; | |
21 char *uri_separator; | |
22 | |
23 ngx_uint_t weight; | |
24 | |
25 ngx_uint_t fails; | |
26 time_t accessed; | |
27 | |
28 ngx_uint_t max_fails; | |
29 time_t fail_timeout; | |
30 | |
31 #if (NGX_SSL) | |
32 ngx_ssl_session_t *ssl_session; | |
33 #endif | |
34 } ngx_peer_t; | |
35 | |
36 | |
37 struct ngx_peers_s { | |
38 ngx_uint_t current; | |
39 ngx_uint_t weight; | |
40 | |
41 ngx_uint_t number; | |
42 ngx_uint_t last_cached; | |
43 | |
44 /* ngx_mutex_t *mutex; */ | |
45 ngx_connection_t **cached; | |
46 | |
47 ngx_peer_t peer[1]; | |
48 }; | |
49 | 14 |
50 | 15 |
51 typedef struct { | 16 typedef struct { |
52 ngx_peers_t *peers; | 17 ngx_peers_t *peers; |
53 ngx_uint_t cur_peer; | 18 ngx_uint_t cur_peer; |