Mercurial > hg > nginx-vendor-current
annotate src/os/unix/ngx_solaris_init.c @ 694:88a1b4797f2e NGINX_1_3_10
nginx 1.3.10
*) Change: domain names specified in configuration file are now resolved
to IPv6 addresses as well as IPv4 ones.
*) Change: now if the "include" directive with mask is used on Unix
systems, included files are sorted in alphabetical order.
*) Change: the "add_header" directive adds headers to 201 responses.
*) Feature: the "geo" directive now supports IPv6 addresses in CIDR
notation.
*) Feature: the "flush" and "gzip" parameters of the "access_log"
directive.
*) Feature: variables support in the "auth_basic" directive.
*) Bugfix: nginx could not be built with the ngx_http_perl_module in
some cases.
*) Bugfix: a segmentation fault might occur in a worker process if the
ngx_http_xslt_module was used.
*) Bugfix: nginx could not be built on MacOSX in some cases.
Thanks to Piotr Sikora.
*) Bugfix: the "limit_rate" directive with high rates might result in
truncated responses on 32-bit platforms.
Thanks to Alexey Antropov.
*) Bugfix: a segmentation fault might occur in a worker process if the
"if" directive was used.
Thanks to Piotr Sikora.
*) Bugfix: a "100 Continue" response was issued with "413 Request Entity
Too Large" responses.
*) Bugfix: the "image_filter", "image_filter_jpeg_quality" and
"image_filter_sharpen" directives might be inherited incorrectly.
Thanks to Ian Babrou.
*) Bugfix: "crypt_r() failed" errors might appear if the "auth_basic"
directive was used on Linux.
*) Bugfix: in backup servers handling.
Thanks to Thomas Chen.
*) Bugfix: proxied HEAD requests might return incorrect response if the
"gzip" directive was used.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 25 Dec 2012 00:00:00 +0400 |
parents | d0f7a625f27c |
children |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
660 | 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 } |