Mercurial > hg > nginx-vendor-current
annotate src/os/unix/ngx_os.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 | 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_ */ |