Mercurial > hg > nginx-vendor-current
annotate src/event/ngx_event_connect.h @ 22:8b6db3bda591 NGINX_0_1_11
nginx 0.1.11
*) Feature: the worker_priority directive.
*) Change: both tcp_nopush and tcp_nodelay directives affect the
transferred response.
*) Bugfix: nginx did not call initgroups().
Thanks to Andrew Sitnikov and Andrei Nigmatulin.
*) Change: now the ngx_http_autoindex_module shows the file size in the
bytes.
*) Bugfix: the ngx_http_autoindex_module returned the 500 error if the
broken symlink was in a directory.
*) Bugfix: the files bigger than 4G could not be transferred using
sendfile.
*) Bugfix: if the backend was resolved to several backends and there
was an error while the response waiting then process may got caught
in an endless loop.
*) Bugfix: the worker process may exit with the "unknown cycle" message
when the /dev/poll method was used.
*) Bugfix: "close() channel failed" errors.
*) Bugfix: the autodetection of the "nobody" and "nogroup" groups.
*) Bugfix: the send_lowat directive did not work on Linux.
*) Bugfix: the segmentation fault occurred if there was no events
section in configuration.
*) Bugfix: nginx could not be built on OpenBSD.
*) Bugfix: the double slashes in "://" in the URI were converted to
":/".
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 02 Dec 2004 00:00:00 +0300 |
parents | 46833bd150cb |
children | 7ca9bdc82b3f |
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 { | |
20 in_addr_t addr; | |
21 ngx_str_t host; | |
22 in_port_t port; | |
23 ngx_str_t addr_port_text; | |
24 | |
25 ngx_int_t fails; | |
26 time_t accessed; | |
27 } ngx_peer_t; | |
28 | |
29 | |
30 typedef struct { | |
31 ngx_int_t current; | |
32 ngx_int_t number; | |
33 ngx_int_t max_fails; | |
6 | 34 time_t fail_timeout; |
0 | 35 ngx_int_t last_cached; |
36 | |
37 /* ngx_mutex_t *mutex; */ | |
38 ngx_connection_t **cached; | |
39 | |
40 ngx_peer_t peers[1]; | |
41 } ngx_peers_t; | |
42 | |
43 | |
44 typedef struct { | |
45 ngx_peers_t *peers; | |
46 ngx_int_t cur_peer; | |
47 ngx_int_t tries; | |
48 | |
49 ngx_connection_t *connection; | |
50 #if (NGX_THREADS) | |
51 ngx_atomic_t *lock; | |
52 #endif | |
53 | |
54 int rcvbuf; | |
55 | |
56 ngx_log_t *log; | |
57 | |
58 unsigned cached:1; | |
59 unsigned log_error:2; /* ngx_connection_log_error_e */ | |
60 } ngx_peer_connection_t; | |
61 | |
62 | |
10 | 63 ngx_int_t ngx_event_connect_peer(ngx_peer_connection_t *pc); |
0 | 64 void ngx_event_connect_peer_failed(ngx_peer_connection_t *pc); |
65 | |
66 | |
67 #endif /* _NGX_EVENT_CONNECT_H_INCLUDED_ */ |