Mercurial > hg > nginx-vendor-current
annotate src/event/ngx_event_connect.h @ 126:df17fbafec8f NGINX_0_3_10
nginx 0.3.10
*) Change: the "valid_referers" directive and the "$invalid_referer"
variable were moved to the new ngx_http_referer_module from the
ngx_http_rewrite_module.
*) Change: the "$apache_bytes_sent" variable name was changed to
"$body_bytes_sent".
*) Feature: the "$sent_http_..." variables.
*) Feature: the "if" directive supports the "=" and "!=" operations.
*) Feature: the "proxy_pass" directive supports the HTTPS protocol.
*) Feature: the "proxy_set_body" directive.
*) Feature: the "post_action" directive.
*) Feature: the ngx_http_empty_gif_module.
*) Feature: the "worker_cpu_affinity" directive for Linux.
*) Bugfix: the "rewrite" directive did not unescape URI part in
redirect, now it is unescaped except the %00-%25 and %7F-%FF
characters.
*) Bugfix: nginx could not be built by the icc 9.0 compiler.
*) Bugfix: if the SSI was enabled for zero size static file, then the
chunked response was encoded incorrectly.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 15 Nov 2005 00:00:00 +0300 |
parents | 45945fa8b8ba |
children | d2ae1c9f1fd3 |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_EVENT_CONNECT_H_INCLUDED_ | |
8 #define _NGX_EVENT_CONNECT_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 #include <ngx_event.h> | |
14 | |
15 | |
16 typedef struct { | |
28 | 17 struct sockaddr *sockaddr; |
18 socklen_t socklen; | |
19 | |
20 ngx_str_t name; | |
21 char *uri_separator; | |
0 | 22 |
28 | 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; | |
126 | 30 |
31 #if (NGX_SSL) | |
32 ngx_ssl_session_t *ssl_session; | |
33 #endif | |
0 | 34 } ngx_peer_t; |
35 | |
36 | |
28 | 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; | |
0 | 43 |
44 /* ngx_mutex_t *mutex; */ | |
45 ngx_connection_t **cached; | |
46 | |
28 | 47 ngx_peer_t peer[1]; |
48 }; | |
0 | 49 |
50 | |
51 typedef struct { | |
36 | 52 ngx_peers_t *peers; |
53 ngx_uint_t cur_peer; | |
54 ngx_uint_t tries; | |
0 | 55 |
36 | 56 ngx_connection_t *connection; |
0 | 57 #if (NGX_THREADS) |
36 | 58 ngx_atomic_t *lock; |
0 | 59 #endif |
60 | |
36 | 61 int rcvbuf; |
0 | 62 |
36 | 63 ngx_log_t *log; |
0 | 64 |
36 | 65 unsigned cached:1; |
66 unsigned log_error:2; /* ngx_connection_log_error_e */ | |
0 | 67 } ngx_peer_connection_t; |
68 | |
69 | |
10 | 70 ngx_int_t ngx_event_connect_peer(ngx_peer_connection_t *pc); |
74 | 71 void ngx_event_connect_peer_failed(ngx_peer_connection_t *pc, ngx_uint_t down); |
0 | 72 |
73 | |
74 #endif /* _NGX_EVENT_CONNECT_H_INCLUDED_ */ |