Mercurial > hg > nginx-vendor-0-7
annotate src/os/unix/ngx_os.h @ 122:d25a1d6034f1 NGINX_0_3_8
nginx 0.3.8
*) Security: nginx now checks URI got from a backend in
"X-Accel-Redirect" header line or in SSI file for the "/../" paths
and zeroes.
*) Change: nginx now does not treat the empty user name in the
"Authorization" header line as valid one.
*) Feature: the "ssl_session_timeout" directives of the
ngx_http_ssl_module and ngx_imap_ssl_module.
*) Feature: the "auth_http_header" directive of the
ngx_imap_auth_http_module.
*) Feature: the "add_header" directive.
*) Feature: the ngx_http_realip_module.
*) Feature: the new variables to use in the "log_format" directive:
$bytes_sent, $apache_bytes_sent, $status, $time_gmt, $uri,
$request_time, $request_length, $upstream_status,
$upstream_response_time, $gzip_ratio, $uid_got, $uid_set,
$connection, $pipe, and $msec. The parameters in the "%name" form
will be canceled soon.
*) Change: now the false variable values in the "if" directive are the
empty string "" and string starting with "0".
*) Bugfix: while using proxied or FastCGI-server nginx may leave
connections and temporary files with client requests in open state.
*) Bugfix: the worker processes did not flush the buffered logs on
graceful exit.
*) Bugfix: if the request URI was changes by the "rewrite" directive
and the request was proxied in location given by regular expression,
then the incorrect request was transferred to backend; bug appeared
in 0.2.6.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" header.
*) Bugfix: nginx may stop to accept requests if the "rtsig" method and
several worker processes were used.
*) Bugfix: the "\"" and "\'" escape symbols were incorrectly handled in
SSI commands.
*) Bugfix: if the response was ended just after the SSI command and
gzipping was used, then the response did not transferred complete or
did not transferred at all.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 09 Nov 2005 00:00:00 +0300 |
parents | e916a291e9aa |
children | 583decdb82a4 |
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; | |
28 ngx_send_pt send; | |
29 ngx_send_chain_pt send_chain; | |
30 ngx_uint_t flags; | |
31 } ngx_os_io_t; | |
32 | |
33 | |
64 | 34 void ngx_debug_init(void); |
0 | 35 ngx_int_t ngx_os_init(ngx_log_t *log); |
36 void ngx_os_status(ngx_log_t *log); | |
88 | 37 ngx_int_t ngx_os_specific_init(ngx_log_t *log); |
38 void ngx_os_specific_status(ngx_log_t *log); | |
0 | 39 ngx_int_t ngx_daemon(ngx_log_t *log); |
40 | |
41 | |
42 ssize_t ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size); | |
43 ssize_t ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *entry); | |
44 ssize_t ngx_unix_send(ngx_connection_t *c, u_char *buf, size_t size); | |
45 ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in, | |
42 | 46 off_t limit); |
0 | 47 |
48 | |
49 extern ngx_os_io_t ngx_os_io; | |
50 extern ngx_int_t ngx_ncpu; | |
51 extern ngx_int_t ngx_max_sockets; | |
22 | 52 extern ngx_uint_t ngx_inherited_nonblocking; |
53 extern ngx_uint_t ngx_tcp_nodelay_and_tcp_nopush; | |
0 | 54 |
55 #define ngx_stderr_fileno STDERR_FILENO | |
56 | |
4 | 57 #if (NGX_FREEBSD) |
0 | 58 #include <ngx_freebsd.h> |
59 | |
60 | |
4 | 61 #elif (NGX_LINUX) |
0 | 62 #include <ngx_linux.h> |
63 | |
64 | |
4 | 65 #elif (NGX_SOLARIS) |
0 | 66 #include <ngx_solaris.h> |
67 #endif | |
68 | |
69 | |
70 #endif /* _NGX_OS_H_INCLUDED_ */ |