annotate src/event/ngx_event_connect.h @ 564:da3c99095432 NGINX_0_8_34

nginx 0.8.34 *) Bugfix: nginx did not support all ciphers and digests used in client certificates. Thanks to Innocenty Enikeew. *) Bugfix: nginx cached incorrectly FastCGI responses if there was large stderr output before response. *) Bugfix: nginx did not support HTTPS referrers. *) Bugfix: nginx/Windows might not find file if path in configuration was given in other character case; the bug had appeared in 0.8.34. *) Bugfix: the $date_local variable has an incorrect value, if the "%s" format was used. Thanks to Maxim Dounin. *) Bugfix: if ssl_session_cache was not set or was set to "none", then during client certificate verify the error "session id context uninitialized" might occur; the bug had appeared in 0.7.1. *) Bugfix: a geo range returned default value if the range included two or more /16 networks and did not begin at /16 network boundary. *) Bugfix: a block used in a "stub" parameter of an "include" SSI directive was output with "text/plain" MIME type. *) Bugfix: $r->sleep() did not work; the bug had appeared in 0.8.11.
author Igor Sysoev <http://sysoev.ru>
date Wed, 03 Mar 2010 00:00:00 +0300
parents c04fa65fe604
children d0f7a625f27c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
1
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
2 /*
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
3 * Copyright (C) Igor Sysoev
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
4 */
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
5
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
6
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
7 #ifndef _NGX_EVENT_CONNECT_H_INCLUDED_
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
8 #define _NGX_EVENT_CONNECT_H_INCLUDED_
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
9
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
10
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
11 #include <ngx_config.h>
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
12 #include <ngx_core.h>
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
13 #include <ngx_event.h>
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
14
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
15
318
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
16 #define NGX_PEER_KEEPALIVE 1
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
17 #define NGX_PEER_NEXT 2
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
18 #define NGX_PEER_FAILED 4
260
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
19
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
20
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
21 typedef struct ngx_peer_connection_s ngx_peer_connection_t;
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
22
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
23 typedef ngx_int_t (*ngx_event_get_peer_pt)(ngx_peer_connection_t *pc,
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
24 void *data);
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
25 typedef void (*ngx_event_free_peer_pt)(ngx_peer_connection_t *pc, void *data,
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
26 ngx_uint_t state);
318
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
27 #if (NGX_SSL)
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
28
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
29 typedef ngx_int_t (*ngx_event_set_peer_session_pt)(ngx_peer_connection_t *pc,
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
30 void *data);
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
31 typedef void (*ngx_event_save_peer_session_pt)(ngx_peer_connection_t *pc,
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
32 void *data);
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
33 #endif
260
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
34
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
35
260
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
36 struct ngx_peer_connection_s {
318
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
37 ngx_connection_t *connection;
260
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
38
318
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
39 struct sockaddr *sockaddr;
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
40 socklen_t socklen;
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
41 ngx_str_t *name;
260
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
42
318
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
43 ngx_uint_t tries;
260
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
44
318
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
45 ngx_event_get_peer_pt get;
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
46 ngx_event_free_peer_pt free;
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
47 void *data;
260
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
48
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
49 #if (NGX_SSL)
318
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
50 ngx_event_set_peer_session_pt set_session;
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
51 ngx_event_save_peer_session_pt save_session;
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
52 #endif
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
53
260
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
54 #if (NGX_THREADS)
318
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
55 ngx_atomic_t *lock;
260
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
56 #endif
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
57
540
c04fa65fe604 nginx 0.8.22
Igor Sysoev <http://sysoev.ru>
parents: 318
diff changeset
58 ngx_addr_t *local;
c04fa65fe604 nginx 0.8.22
Igor Sysoev <http://sysoev.ru>
parents: 318
diff changeset
59
318
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
60 int rcvbuf;
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
61
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
62 ngx_log_t *log;
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
63
318
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
64 unsigned cached:1;
260
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
65
318
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
66 /* ngx_connection_log_error_e */
fc223117327f nginx 0.6.3
Igor Sysoev <http://sysoev.ru>
parents: 260
diff changeset
67 unsigned log_error:2;
260
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
68 };
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
69
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
70
10
46833bd150cb nginx 0.1.5
Igor Sysoev <http://sysoev.ru>
parents: 6
diff changeset
71 ngx_int_t ngx_event_connect_peer(ngx_peer_connection_t *pc);
260
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
72 ngx_int_t ngx_event_get_peer(ngx_peer_connection_t *pc, void *data);
0effe91f6083 nginx 0.5.0
Igor Sysoev <http://sysoev.ru>
parents: 200
diff changeset
73
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
74
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
75 #endif /* _NGX_EVENT_CONNECT_H_INCLUDED_ */