Mercurial > hg > nginx-vendor-0-5
annotate src/os/unix/ngx_solaris_init.c @ 328:26ff8d6b618d NGINX_0_5_34
nginx 0.5.34
*) Change: now the full request line instead of URI only is written to
error_log.
*) Feature: Cygwin compatibility.
Thanks to Vladimir Kutakov.
*) Feature: the "merge_slashes" directive.
*) Feature: the "gzip_vary" directive.
*) Feature: the "server_tokens" directive.
*) Feature: the "access_log" directive may be used inside the
"limit_except" block.
*) Bugfix: if the $server_protocol was used in FastCGI parameters and a
request line length was near to the "client_header_buffer_size"
directive value, then nginx issued an alert "fastcgi: the request
record is too big".
*) Bugfix: if a plain text HTTP/0.9 version request was made to HTTPS
server, then nginx returned usual response.
*) Bugfix: URL double escaping in a redirect of the "msie_refresh"
directive; bug appeared in 0.5.28.
*) Bugfix: a segmentation fault might occur in worker process if
subrequests were used.
*) Bugfix: the big responses may be transferred truncated if SSL and
gzip were used.
*) Bugfix: compatibility with mget.
*) Bugfix: nginx did not unescape URI in the "include" SSI command.
*) Bugfix: the segmentation fault was occurred on start or while
reconfiguration if variable was used in the "charset" or
"source_charset" directives.
*) Bugfix: nginx returned the 400 response on requests like
"GET http://www.domain.com HTTP/1.0".
Thanks to James Oakley.
*) Bugfix: a segmentation fault occurred in worker process if
$date_local and $date_gmt were used outside the
ngx_http_ssi_filter_module.
*) Bugfix: a segmentation fault might occur in worker process if debug
log was enabled.
Thanks to Andrei Nigmatulin.
*) Bugfix: ngx_http_memcached_module did not set
$upstream_response_time.
Thanks to Maxim Dounin.
*) Bugfix: a worker process may got caught in an endless loop, if the
memcached was used.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 13 Dec 2007 00:00:00 +0300 |
parents | e916a291e9aa |
children |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #include <ngx_config.h> | |
8 #include <ngx_core.h> | |
9 | |
10 | |
11 char ngx_solaris_sysname[20]; | |
12 char ngx_solaris_release[10]; | |
13 char ngx_solaris_version[50]; | |
14 | |
15 | |
88 | 16 static ngx_os_io_t ngx_solaris_io = { |
0 | 17 ngx_unix_recv, |
18 ngx_readv_chain, | |
19 ngx_unix_send, | |
18 | 20 #if (NGX_HAVE_SENDFILE) |
0 | 21 ngx_solaris_sendfilev_chain, |
22 NGX_IO_SENDFILE | |
23 #else | |
24 ngx_writev_chain, | |
25 0 | |
26 #endif | |
27 }; | |
28 | |
29 | |
88 | 30 ngx_int_t |
31 ngx_os_specific_init(ngx_log_t *log) | |
0 | 32 { |
33 if (sysinfo(SI_SYSNAME, ngx_solaris_sysname, sizeof(ngx_solaris_sysname)) | |
88 | 34 == -1) |
0 | 35 { |
36 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, | |
37 "sysinfo(SI_SYSNAME) failed"); | |
38 return NGX_ERROR; | |
39 } | |
40 | |
41 if (sysinfo(SI_RELEASE, ngx_solaris_release, sizeof(ngx_solaris_release)) | |
88 | 42 == -1) |
0 | 43 { |
44 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, | |
45 "sysinfo(SI_RELEASE) failed"); | |
46 return NGX_ERROR; | |
47 } | |
48 | |
49 if (sysinfo(SI_VERSION, ngx_solaris_version, sizeof(ngx_solaris_version)) | |
88 | 50 == -1) |
0 | 51 { |
52 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, | |
53 "sysinfo(SI_SYSNAME) failed"); | |
54 return NGX_ERROR; | |
55 } | |
56 | |
2 | 57 |
88 | 58 ngx_os_io = ngx_solaris_io; |
59 | |
328 | 60 return NGX_OK; |
0 | 61 } |
62 | |
63 | |
88 | 64 void |
65 ngx_os_specific_status(ngx_log_t *log) | |
0 | 66 { |
67 | |
80 | 68 ngx_log_error(NGX_LOG_NOTICE, log, 0, "OS: %s %s", |
0 | 69 ngx_solaris_sysname, ngx_solaris_release); |
70 | |
80 | 71 ngx_log_error(NGX_LOG_NOTICE, log, 0, "version: %s", |
0 | 72 ngx_solaris_version); |
73 } |