Mercurial > hg > nginx-vendor-current
annotate auto/types/sizeof @ 634:23ef0645ea57 NGINX_1_1_1
nginx 1.1.1
*) Change: now cache loader processes either as many files as specified
by "loader_files" parameter or works no more than time specified by
"loader_threshold" parameter during each iteration.
*) Change: now SIGWINCH signal works only in deamon mode.
*) Feature: now shared zones and caches use POSIX semaphores on
Solaris.
Thanks to Den Ivanov.
*) Feature: accept filters are now supported on NetBSD.
*) Bugfix: nginx could not be build on Linux 3.0.
*) Bugfix: nginx did not use gzipping in some cases; the bug had
appeared in 1.1.0.
*) Bugfix: request body might be incorrectly processed if client used
pipelining.
*) Bugfix: in the "request_body_in_single_buf" directive.
*) Bugfix: in "proxy_set_body" and "proxy_pass_request_body" directives
if SSL connection to backend was used.
*) Bugfix: nginx hogged CPU if all servers in an upstream were marked
as "down".
*) Bugfix: a segmentation fault might occur during reconfiguration if
ssl_session_cache was defined but not used in a previous
configuration.
*) Bugfix: a segmentation fault might occur in a worker process if many
backup servers were used in an upstream.
*) Bugfix: a segmentation fault might occur in a worker process if
"fastcgi/scgi/uwsgi_param" directives were used with values starting
with "HTTP_"; the bug had appeared in 0.8.40.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 22 Aug 2011 00:00:00 +0400 |
parents | 3866d57d9cfd |
children | d0f7a625f27c |
rev | line source |
---|---|
0 | 1 |
2 # Copyright (C) Igor Sysoev | |
3 | |
4 | |
4 | 5 echo $ngx_n "checking for $ngx_type size ...$ngx_c" |
6 | |
7 cat << END >> $NGX_AUTOCONF_ERR | |
8 | |
9 ---------------------------------------- | |
10 checking for $ngx_type size | |
11 | |
12 END | |
0 | 13 |
14 ngx_size= | |
15 | |
16 cat << END > $NGX_AUTOTEST.c | |
17 | |
18 #include <sys/types.h> | |
19 #include <sys/time.h> | |
4 | 20 $NGX_INCLUDE_UNISTD_H |
0 | 21 #include <signal.h> |
22 #include <sys/resource.h> | |
4 | 23 $NGX_INCLUDE_INTTYPES_H |
24 $NGX_INCLUDE_AUTO_CONFIG_H | |
0 | 25 |
26 int main() { | |
27 printf("%d", sizeof($ngx_type)); | |
28 return 0; | |
29 } | |
30 | |
31 END | |
32 | |
4 | 33 |
132 | 34 ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS \ |
126 | 35 -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs" |
36 | |
4 | 37 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1" |
38 | |
0 | 39 |
40 if [ -x $NGX_AUTOTEST ]; then | |
41 ngx_size=`$NGX_AUTOTEST` | |
42 echo " $ngx_size bytes" | |
43 fi | |
44 | |
4 | 45 |
46 rm -f $NGX_AUTOTEST | |
47 | |
0 | 48 |
49 case $ngx_size in | |
50 4) | |
51 if [ "$ngx_type"="long" ]; then | |
52 ngx_max_value=2147483647L | |
53 else | |
54 ngx_max_value=2147483647 | |
55 fi | |
56 | |
206 | 57 ngx_max_len='(sizeof("-2147483648") - 1)' |
0 | 58 ;; |
59 | |
60 8) | |
61 if [ "$ngx_type"="long long" ]; then | |
62 ngx_max_value=9223372036854775807LL | |
63 else | |
64 ngx_max_value=9223372036854775807L | |
65 fi | |
66 | |
206 | 67 ngx_max_len='(sizeof("-9223372036854775808") - 1)' |
0 | 68 ;; |
69 | |
70 *) | |
71 echo | |
72 echo "$0: error: can not detect $ngx_type size" | |
4 | 73 |
74 echo "----------" >> $NGX_AUTOCONF_ERR | |
75 cat $NGX_AUTOTEST.c >> $NGX_AUTOCONF_ERR | |
76 echo "----------" >> $NGX_AUTOCONF_ERR | |
77 echo $ngx_test >> $NGX_AUTOCONF_ERR | |
78 echo "----------" >> $NGX_AUTOCONF_ERR | |
79 | |
0 | 80 exit 1 |
81 esac | |
4 | 82 |