Mercurial > hg > nginx-ranges
annotate src/event/ngx_event_connect.h @ 326:9fc4ab6673f9 NGINX_0_6_7
nginx 0.6.7
*) Change: now the paths specified in the "include",
"auth_basic_user_file", "perl_modules", "ssl_certificate",
"ssl_certificate_key", and "ssl_client_certificate" directives are
relative to directory of nginx configuration file nginx.conf, but
not to nginx prefix directory.
*) Change: the --sysconfdir=PATH option in configure was canceled.
*) Change: the special make target "upgrade1" was defined for online
upgrade of 0.1.x versions.
*) Feature: the "server_name" and "valid_referers" directives support
regular expressions.
*) Feature: the "server" directive in the "upstream" context supports
the "backup" parameter.
*) Feature: the ngx_http_perl_module supports the
$r->discard_request_body.
*) Feature: the "add_header Last-Modified ..." directive changes the
"Last-Modified" response header line.
*) Bugfix: if an response different than 200 was returned to an request
with body and connection went to the keep-alive state after the
request, then nginx returned 400 for the next request.
*) Bugfix: a segmentation fault occurred in worker process if invalid
address was set in the "auth_http" directive.
*) Bugfix: now nginx uses default listen backlog value 511 on all
platforms except FreeBSD.
Thanks to Jiang Hong.
*) Bugfix: a worker process may got caught in an endless loop, if an
"server" inside "upstream" block was marked as "down"; bug appeared
in 0.6.6.
*) Bugfix: now Solaris sendfilev() is not used to transfer the client
request body to FastCGI-server via the unix domain socket.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 15 Aug 2007 00:00:00 +0400 |
parents | fc223117327f |
children | c04fa65fe604 |
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 | |
318 | 16 #define NGX_PEER_KEEPALIVE 1 |
17 #define NGX_PEER_NEXT 2 | |
18 #define NGX_PEER_FAILED 4 | |
260 | 19 |
20 | |
21 typedef struct ngx_peer_connection_s ngx_peer_connection_t; | |
22 | |
23 typedef ngx_int_t (*ngx_event_get_peer_pt)(ngx_peer_connection_t *pc, | |
24 void *data); | |
25 typedef void (*ngx_event_free_peer_pt)(ngx_peer_connection_t *pc, void *data, | |
26 ngx_uint_t state); | |
318 | 27 #if (NGX_SSL) |
28 | |
29 typedef ngx_int_t (*ngx_event_set_peer_session_pt)(ngx_peer_connection_t *pc, | |
30 void *data); | |
31 typedef void (*ngx_event_save_peer_session_pt)(ngx_peer_connection_t *pc, | |
32 void *data); | |
33 #endif | |
260 | 34 |
0 | 35 |
260 | 36 struct ngx_peer_connection_s { |
318 | 37 ngx_connection_t *connection; |
260 | 38 |
318 | 39 struct sockaddr *sockaddr; |
40 socklen_t socklen; | |
41 ngx_str_t *name; | |
260 | 42 |
318 | 43 ngx_uint_t tries; |
260 | 44 |
318 | 45 ngx_event_get_peer_pt get; |
46 ngx_event_free_peer_pt free; | |
47 void *data; | |
260 | 48 |
49 #if (NGX_SSL) | |
318 | 50 ngx_event_set_peer_session_pt set_session; |
51 ngx_event_save_peer_session_pt save_session; | |
0 | 52 #endif |
53 | |
260 | 54 #if (NGX_THREADS) |
318 | 55 ngx_atomic_t *lock; |
260 | 56 #endif |
0 | 57 |
318 | 58 int rcvbuf; |
59 | |
60 ngx_log_t *log; | |
0 | 61 |
318 | 62 unsigned cached:1; |
260 | 63 |
318 | 64 /* ngx_connection_log_error_e */ |
65 unsigned log_error:2; | |
260 | 66 }; |
0 | 67 |
68 | |
10 | 69 ngx_int_t ngx_event_connect_peer(ngx_peer_connection_t *pc); |
260 | 70 ngx_int_t ngx_event_get_peer(ngx_peer_connection_t *pc, void *data); |
71 | |
0 | 72 |
73 | |
74 #endif /* _NGX_EVENT_CONNECT_H_INCLUDED_ */ |