Mercurial > hg > nginx-vendor-current
annotate src/os/unix/ngx_os.h @ 92:45945fa8b8ba NGINX_0_2_0
nginx 0.2.0
*) The pid-file names used during online upgrade was changed and now is
not required a manual rename operation. The old master process adds
the ".oldbin" suffix to its pid-file and executes a new binary file.
The new master process creates usual pid-file without the ".newbin"
suffix. If the master process exits, then old master process renames
back its pid-file with the ".oldbin" suffix to the pid-file without
suffix.
*) Change: the "worker_connections" directive, new name of the
"connections" directive; now the directive specifies maximum number
of connections, but not maximum socket descriptor number.
*) Feature: SSL supports the session cache inside one worker process.
*) Feature: the "satisfy_any" directive.
*) Change: the ngx_http_access_module and ngx_http_auth_basic_module do
not run for subrequests.
*) Feature: the "worker_rlimit_nofile" and "worker_rlimit_sigpending"
directives.
*) Bugfix: if all backend using in load-balancing failed after one
error, then nginx did not try do connect to them during 60 seconds.
*) Bugfix: in IMAP/POP3 command argument parsing.
Thanks to Rob Mueller.
*) Bugfix: errors while using SSL in IMAP/POP3 proxy.
*) Bugfix: errors while using SSI and gzipping.
*) Bugfix: the "Expires" and "Cache-Control" header lines were omitted
from the 304 responses.
Thanks to Alexandr Kukushkin.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 23 Sep 2005 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_ */ |