comparison src/event/ngx_event_connect.h @ 28:7ca9bdc82b3f NGINX_0_1_14

nginx 0.1.14 *) Feature: the autoconfiguration directives: --http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and --http-fastcgi-temp-path=PATH *) Change: the directory name for the temporary files with the client request body is specified by directive client_body_temp_path, by default it is <prefix>/client_body_temp. *) Feature: the ngx_http_fastcgi_module and the directives: fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params, fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout, fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers, fastcgi_busy_buffers_size, fastcgi_temp_path, fastcgi_max_temp_file_size, fastcgi_temp_file_write_size, fastcgi_next_upstream, and fastcgi_x_powered_by. *) Bugfix: the "[alert] zero size buf" error; bug appeared in 0.1.3. *) Change: the URI must be specified after the host name in the proxy_pass directive. *) Change: the %3F symbol in the URI was considered as the argument string start. *) Feature: the unix domain sockets support in the ngx_http_proxy_module. *) Feature: the ssl_engine and ssl_ciphers directives. Thanks to Sergey Skvortsov for SSL-accelerator.
author Igor Sysoev <http://sysoev.ru>
date Tue, 18 Jan 2005 00:00:00 +0300
parents 46833bd150cb
children a39d1b793287
comparison
equal deleted inserted replaced
27:66901c2556fd 28:7ca9bdc82b3f
15 15
16 #define NGX_CONNECT_ERROR -10 16 #define NGX_CONNECT_ERROR -10
17 17
18 18
19 typedef struct { 19 typedef struct {
20 in_addr_t addr; 20 struct sockaddr *sockaddr;
21 ngx_str_t host; 21 socklen_t socklen;
22 in_port_t port;
23 ngx_str_t addr_port_text;
24 22
25 ngx_int_t fails; 23 ngx_str_t name;
26 time_t accessed; 24 char *uri_separator;
25
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;
27 } ngx_peer_t; 33 } ngx_peer_t;
28 34
29 35
30 typedef struct { 36 struct ngx_peers_s {
31 ngx_int_t current; 37 ngx_uint_t current;
32 ngx_int_t number; 38 ngx_uint_t weight;
33 ngx_int_t max_fails; 39
34 time_t fail_timeout; 40 ngx_uint_t number;
35 ngx_int_t last_cached; 41 ngx_uint_t last_cached;
36 42
37 /* ngx_mutex_t *mutex; */ 43 /* ngx_mutex_t *mutex; */
38 ngx_connection_t **cached; 44 ngx_connection_t **cached;
39 45
40 ngx_peer_t peers[1]; 46 ngx_peer_t peer[1];
41 } ngx_peers_t; 47 };
42 48
43 49
44 typedef struct { 50 typedef struct {
45 ngx_peers_t *peers; 51 ngx_peers_t *peers;
46 ngx_int_t cur_peer; 52 ngx_uint_t cur_peer;
47 ngx_int_t tries; 53 ngx_uint_t tries;
48 54
49 ngx_connection_t *connection; 55 ngx_connection_t *connection;
50 #if (NGX_THREADS) 56 #if (NGX_THREADS)
51 ngx_atomic_t *lock; 57 ngx_atomic_t *lock;
52 #endif 58 #endif