comparison src/event/ngx_event_connect.h @ 651:39b7d7b33c91 release-0.3.47

nginx-0.3.47-RELEASE import *) Feature: the "upstream" directive. *) Change: now the "\" escape symbol in the "\"" and "\'" pairs in the SSI command is always removed.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 23 May 2006 14:54:58 +0000
parents 4d9ea73a627a
children 4d68c486fcb0
comparison
equal deleted inserted replaced
650:d865681780b6 651:39b7d7b33c91
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;