Mercurial > hg > nginx-vendor-current
annotate src/event/ngx_event_connect.h @ 130:82d695e3d662 NGINX_0_3_12
nginx 0.3.12
*) Security: if nginx was built with the ngx_http_realip_module and the
"satisfy_any on" directive was used, then access and authorization
directives did not work. The ngx_http_realip_module was not built
and is not built by default.
*) Change: the "$time_gmt" variable name was changed to "$time_local".
*) Change: the "proxy_header_buffer_size" and
"fastcgi_header_buffer_size" directives was renamed to the
"proxy_buffer_size" and "fastcgi_buffer_size" directives.
*) Feature: the ngx_http_memcached_module.
*) Feature: the "proxy_buffering" directive.
*) Bugfix: the changes in accept mutex handling when the "rtsig" method
was used; bug appeared in 0.3.0.
*) Bugfix: if the client sent the "Transfer-Encoding: chunked" header
line, then nginx returns the 411 error.
*) Bugfix: if the "auth_basic" directive was inherited from the http
level, then the realm in the "WWW-Authenticate" header line was
without the "Basic realm" text.
*) Bugfix: if the "combined" format was explicitly specified in the
"access_log" directive, then the empty lines was written to the log;
bug appeared in 0.3.8.
*) Bugfix: nginx did not run on the sparc platform under any OS except
Solaris.
*) Bugfix: now it is not necessary to place space between the quoted
string and closing bracket in the "if" directive.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Sat, 26 Nov 2005 00:00:00 +0300 |
parents | df17fbafec8f |
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_ */ |