Mercurial > hg > nginx-vendor-1-0
annotate src/os/unix/ngx_solaris_init.c @ 644:ad25218fd14b NGINX_1_0_12
nginx 1.0.12
*) Feature: the "TLSv1.1" and "TLSv1.2" parameters of the
"ssl_protocols" directive.
*) Feature: the "if" SSI command supports captures in regular
expressions.
*) Bugfix: the "if" SSI command did not work inside the "block" command.
*) Bugfix: in AIO error handling on FreeBSD.
*) Bugfix: in the OpenSSL library initialization.
*) Bugfix: the "worker_cpu_affinity" directive might not work.
*) Bugfix: the "limit_conn_log_level" and "limit_req_log_level"
directives might not work.
*) Bugfix: the "read_ahead" directive might not work combined with
"try_files" and "open_file_cache".
*) Bugfix: the "proxy_cache_use_stale" directive with "error" parameter
did not return answer from cache if there were no live upstreams.
*) Bugfix: a segmentation fault might occur in a worker process if small
time was used in the "inactive" parameter of the "proxy_cache_path"
directive.
*) Bugfix: responses from cache might hang.
*) Bugfix: in error handling while connecting to a backend.
Thanks to Piotr Sikora.
*) Bugfix: in the "epoll" event method.
Thanks to Yichun Zhang.
*) Bugfix: the $sent_http_cache_control variable might contain a wrong
value if the "expires" directive was used.
Thanks to Yichun Zhang.
*) Bugfix: the "limit_rate" directive did not allow to use full
throughput, even if limit value was very high.
*) Bugfix: the "sendfile_max_chunk" directive did not work, if the
"limit_rate" directive was used.
*) Bugfix: nginx could not be built on Solaris; the bug had appeared in
1.0.11.
*) Bugfix: in the ngx_http_scgi_module.
*) Bugfix: in the ngx_http_mp4_module.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 06 Feb 2012 00:00:00 +0400 |
parents | 583decdb82a4 |
children |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
644 | 4 * Copyright (C) Nginx, Inc. |
0 | 5 */ |
6 | |
7 | |
8 #include <ngx_config.h> | |
9 #include <ngx_core.h> | |
10 | |
11 | |
12 char ngx_solaris_sysname[20]; | |
13 char ngx_solaris_release[10]; | |
14 char ngx_solaris_version[50]; | |
15 | |
16 | |
88 | 17 static ngx_os_io_t ngx_solaris_io = { |
0 | 18 ngx_unix_recv, |
19 ngx_readv_chain, | |
354 | 20 ngx_udp_unix_recv, |
0 | 21 ngx_unix_send, |
18 | 22 #if (NGX_HAVE_SENDFILE) |
0 | 23 ngx_solaris_sendfilev_chain, |
24 NGX_IO_SENDFILE | |
25 #else | |
26 ngx_writev_chain, | |
27 0 | |
28 #endif | |
29 }; | |
30 | |
31 | |
88 | 32 ngx_int_t |
33 ngx_os_specific_init(ngx_log_t *log) | |
0 | 34 { |
35 if (sysinfo(SI_SYSNAME, ngx_solaris_sysname, sizeof(ngx_solaris_sysname)) | |
88 | 36 == -1) |
0 | 37 { |
38 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, | |
39 "sysinfo(SI_SYSNAME) failed"); | |
40 return NGX_ERROR; | |
41 } | |
42 | |
43 if (sysinfo(SI_RELEASE, ngx_solaris_release, sizeof(ngx_solaris_release)) | |
88 | 44 == -1) |
0 | 45 { |
46 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, | |
47 "sysinfo(SI_RELEASE) failed"); | |
48 return NGX_ERROR; | |
49 } | |
50 | |
51 if (sysinfo(SI_VERSION, ngx_solaris_version, sizeof(ngx_solaris_version)) | |
88 | 52 == -1) |
0 | 53 { |
54 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, | |
55 "sysinfo(SI_SYSNAME) failed"); | |
56 return NGX_ERROR; | |
57 } | |
58 | |
2 | 59 |
88 | 60 ngx_os_io = ngx_solaris_io; |
61 | |
340 | 62 return NGX_OK; |
0 | 63 } |
64 | |
65 | |
88 | 66 void |
67 ngx_os_specific_status(ngx_log_t *log) | |
0 | 68 { |
69 | |
80 | 70 ngx_log_error(NGX_LOG_NOTICE, log, 0, "OS: %s %s", |
0 | 71 ngx_solaris_sysname, ngx_solaris_release); |
72 | |
80 | 73 ngx_log_error(NGX_LOG_NOTICE, log, 0, "version: %s", |
0 | 74 ngx_solaris_version); |
75 } |