Mercurial > hg > nginx-vendor-0-7
annotate src/os/unix/ngx_os.h @ 366:babd3d9efb62 NGINX_0_6_27
nginx 0.6.27
*) Change: now by default the rtsig method is not built on
Linux 2.6.18+.
*) Change: now a request method is not changed while redirection to a
named location via an "error_page" directive.
*) Feature: the "resolver" and "resolver_timeout" directives in SMTP
proxy.
*) Feature: the "post_action" directive supports named locations.
*) Bugfix: a segmentation fault occurred in worker process, if a
request was redirected from proxy, FastCGI, or memcached location to
static named locations.
*) Bugfix: browsers did not repeat SSL handshake if there is no valid
client certificate in first handshake.
Thanks to Alexander V. Inyukhin.
*) Bugfix: if response code 495-497 was redirected via an "error_page"
directive without code change, then nginx tried to allocate too many
memory.
*) Bugfix: memory leak in long-lived non buffered connections.
*) Bugfix: memory leak in resolver.
*) Bugfix: a segmentation fault occurred in worker process, if a
request was redirected from proxy, FastCGI, or memcached location to
static named locations.
*) Bugfix: in the $proxy_host and $proxy_port variables caching.
Thanks to Sergey Bochenkov.
*) Bugfix: a "proxy_pass" directive with variables used incorrectly the
same port as in another "proxy_pass" directive with the same host
name and without variables.
Thanks to Sergey Bochenkov.
*) Bugfix: an alert "sendmsg() failed (9: Bad file descriptor)" on some
64-bit platforms while reconfiguration.
*) Bugfix: a segmentation fault occurred in worker process, if empty
stub block was used second time in SSI.
*) Bugfix: in copying URI part contained escaped symbols into arguments.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 12 Mar 2008 00:00:00 +0300 |
parents | 583decdb82a4 |
children | 0b6053502c55 |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_OS_H_INCLUDED_ | |
8 #define _NGX_OS_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 | |
14 | |
15 #define NGX_IO_SENDFILE 1 | |
16 #define NGX_IO_ZEROCOPY 2 | |
17 | |
18 | |
19 typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size); | |
20 typedef ssize_t (*ngx_recv_chain_pt)(ngx_connection_t *c, ngx_chain_t *in); | |
21 typedef ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size); | |
22 typedef ngx_chain_t *(*ngx_send_chain_pt)(ngx_connection_t *c, ngx_chain_t *in, | |
42 | 23 off_t limit); |
0 | 24 |
25 typedef struct { | |
26 ngx_recv_pt recv; | |
27 ngx_recv_chain_pt recv_chain; | |
354 | 28 ngx_recv_pt udp_recv; |
0 | 29 ngx_send_pt send; |
30 ngx_send_chain_pt send_chain; | |
31 ngx_uint_t flags; | |
32 } ngx_os_io_t; | |
33 | |
34 | |
64 | 35 void ngx_debug_init(void); |
0 | 36 ngx_int_t ngx_os_init(ngx_log_t *log); |
37 void ngx_os_status(ngx_log_t *log); | |
88 | 38 ngx_int_t ngx_os_specific_init(ngx_log_t *log); |
39 void ngx_os_specific_status(ngx_log_t *log); | |
0 | 40 ngx_int_t ngx_daemon(ngx_log_t *log); |
41 | |
42 | |
43 ssize_t ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size); | |
44 ssize_t ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *entry); | |
354 | 45 ssize_t ngx_udp_unix_recv(ngx_connection_t *c, u_char *buf, size_t size); |
0 | 46 ssize_t ngx_unix_send(ngx_connection_t *c, u_char *buf, size_t size); |
47 ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in, | |
42 | 48 off_t limit); |
0 | 49 |
50 | |
51 extern ngx_os_io_t ngx_os_io; | |
52 extern ngx_int_t ngx_ncpu; | |
53 extern ngx_int_t ngx_max_sockets; | |
22 | 54 extern ngx_uint_t ngx_inherited_nonblocking; |
55 extern ngx_uint_t ngx_tcp_nodelay_and_tcp_nopush; | |
0 | 56 |
57 #define ngx_stderr_fileno STDERR_FILENO | |
58 | |
4 | 59 #if (NGX_FREEBSD) |
0 | 60 #include <ngx_freebsd.h> |
61 | |
62 | |
4 | 63 #elif (NGX_LINUX) |
0 | 64 #include <ngx_linux.h> |
65 | |
66 | |
4 | 67 #elif (NGX_SOLARIS) |
0 | 68 #include <ngx_solaris.h> |
69 #endif | |
70 | |
71 | |
72 #endif /* _NGX_OS_H_INCLUDED_ */ |