Mercurial > hg > nginx-vendor-0-8
annotate auto/types/sizeof @ 366:babd3d9efb62 NGINX_0_6_27
nginx 0.6.27
*) Change: now by default the rtsig method is not built on
Linux 2.6.18+.
*) Change: now a request method is not changed while redirection to a
named location via an "error_page" directive.
*) Feature: the "resolver" and "resolver_timeout" directives in SMTP
proxy.
*) Feature: the "post_action" directive supports named locations.
*) Bugfix: a segmentation fault occurred in worker process, if a
request was redirected from proxy, FastCGI, or memcached location to
static named locations.
*) Bugfix: browsers did not repeat SSL handshake if there is no valid
client certificate in first handshake.
Thanks to Alexander V. Inyukhin.
*) Bugfix: if response code 495-497 was redirected via an "error_page"
directive without code change, then nginx tried to allocate too many
memory.
*) Bugfix: memory leak in long-lived non buffered connections.
*) Bugfix: memory leak in resolver.
*) Bugfix: a segmentation fault occurred in worker process, if a
request was redirected from proxy, FastCGI, or memcached location to
static named locations.
*) Bugfix: in the $proxy_host and $proxy_port variables caching.
Thanks to Sergey Bochenkov.
*) Bugfix: a "proxy_pass" directive with variables used incorrectly the
same port as in another "proxy_pass" directive with the same host
name and without variables.
Thanks to Sergey Bochenkov.
*) Bugfix: an alert "sendmsg() failed (9: Bad file descriptor)" on some
64-bit platforms while reconfiguration.
*) Bugfix: a segmentation fault occurred in worker process, if empty
stub block was used second time in SSI.
*) Bugfix: in copying URI part contained escaped symbols into arguments.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 12 Mar 2008 00:00:00 +0300 |
parents | 3866d57d9cfd |
children |
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 |