Mercurial > hg > nginx-ranges
annotate src/event/ngx_event_connect.h @ 78:9db7e0b5b27f NGINX_0_1_39
nginx 0.1.39
*) The changes in the ngx_http_charset_module: the "default_charset"
directive was canceled; the "charset" directive sets the response
charset; the "source_charset" directive sets the source charset only.
*) Bugfix: the backend "WWW-Authenticate" header line did not
transferred while the 401 response code redirecting.
*) Bugfix: the ngx_http_proxy_module and ngx_http_fastcgi_module may
close a connection before anything was transferred to a client; bug
appeared in 0.1.38.
*) Workaround: the Linux glibc crypt_r() initialization bug.
*) Bugfix: the ngx_http_ssi_module did not support the relative URI in
the "include virtual" command.
*) Bugfix: if the backend response had the "Location" header line and
nginx should not rewrite this line, then the 500 code response body
was transferred; bug appeared in 0.1.29.
*) Bugfix: some directives of the ngx_http_proxy_module and
ngx_http_fastcgi_module were not inherited from the server to the
location level; bug appeared in 0.1.29.
*) Bugfix: the ngx_http_ssl_module did not support the certificate
chain.
*) Bugfix: the ngx_http_autoindex_module did not show correctly the
long file names; bug appeared in 0.1.38.
*) Bugfixes in IMAP/POP3 proxy in interaction with a backend at the
login state.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 14 Jul 2005 00:00:00 +0400 |
parents | 77969b24f355 |
children | 45945fa8b8ba |
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 #define NGX_CONNECT_ERROR -10 | |
17 | |
18 | |
19 typedef struct { | |
28 | 20 struct sockaddr *sockaddr; |
21 socklen_t socklen; | |
22 | |
23 ngx_str_t name; | |
24 char *uri_separator; | |
0 | 25 |
28 | 26 ngx_uint_t weight; |
27 | |
28 ngx_uint_t fails; | |
29 time_t accessed; | |
30 | |
31 ngx_uint_t max_fails; | |
32 time_t fail_timeout; | |
0 | 33 } ngx_peer_t; |
34 | |
35 | |
28 | 36 struct ngx_peers_s { |
37 ngx_uint_t current; | |
38 ngx_uint_t weight; | |
39 | |
40 ngx_uint_t number; | |
41 ngx_uint_t last_cached; | |
0 | 42 |
43 /* ngx_mutex_t *mutex; */ | |
44 ngx_connection_t **cached; | |
45 | |
28 | 46 ngx_peer_t peer[1]; |
47 }; | |
0 | 48 |
49 | |
50 typedef struct { | |
36 | 51 ngx_peers_t *peers; |
52 ngx_uint_t cur_peer; | |
53 ngx_uint_t tries; | |
0 | 54 |
36 | 55 ngx_connection_t *connection; |
0 | 56 #if (NGX_THREADS) |
36 | 57 ngx_atomic_t *lock; |
0 | 58 #endif |
59 | |
36 | 60 int rcvbuf; |
0 | 61 |
36 | 62 ngx_log_t *log; |
0 | 63 |
36 | 64 unsigned cached:1; |
65 unsigned log_error:2; /* ngx_connection_log_error_e */ | |
0 | 66 } ngx_peer_connection_t; |
67 | |
68 | |
10 | 69 ngx_int_t ngx_event_connect_peer(ngx_peer_connection_t *pc); |
74 | 70 void ngx_event_connect_peer_failed(ngx_peer_connection_t *pc, ngx_uint_t down); |
0 | 71 |
72 | |
73 #endif /* _NGX_EVENT_CONNECT_H_INCLUDED_ */ |