[-]
[+]
|
Changed |
nginx-1.0.spec
|
|
[-]
[+]
|
Deleted |
nginx-0.6.38-html.patch
^
|
@@ -1,14 +0,0 @@
-Index: auto/install
-===================================================================
---- auto/install.orig
-+++ auto/install
-@@ -54,8 +54,7 @@
- test -d '\$(DESTDIR)`dirname "$NGX_HTTP_LOG_PATH"`' || \
- mkdir -p '\$(DESTDIR)`dirname "$NGX_HTTP_LOG_PATH"`'
-
-- test -d '\$(DESTDIR)$NGX_PREFIX/html' \
-- || cp -r html '\$(DESTDIR)$NGX_PREFIX'
-+ test -d '\$(DESTDIR)/srv/www/htdocs' || install -d '\$(DESTDIR)/srv/www/' && cp -r html '\$(DESTDIR)/srv/www/htdocs'
- END
-
-
|
[-]
[+]
|
Added |
nginx-1.0.12-html.patch
^
|
@@ -0,0 +1,14 @@
+--- auto/install.orig 2012-02-18 11:26:24.695650389 +0100
++++ auto/install 2012-02-18 11:27:04.973354126 +0100
+@@ -147,8 +147,9 @@
+ test -d '\$(DESTDIR)`dirname "$NGX_HTTP_LOG_PATH"`' || \
+ mkdir -p '\$(DESTDIR)`dirname "$NGX_HTTP_LOG_PATH"`'
+
+- test -d '\$(DESTDIR)$NGX_PREFIX/html' \
+- || cp -R $NGX_HTML '\$(DESTDIR)$NGX_PREFIX'
++ test -d '\$(DESTDIR)/srv/www/htdocs' \
++ || install -d '\$(DESTDIR)/srv/www/' \
++ && cp -r html '\$(DESTDIR)/srv/www/htdocs'
+ END
+
+
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/CHANGES
^
|
@@ -1,4 +1,59 @@
+Changes with nginx 1.0.12 06 Feb 2012
+
+ *) 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.
+
+
Changes with nginx 1.0.11 15 Dec 2011
*) Change: now double quotes are encoded in an "echo" SSI-command
@@ -4447,8 +4502,8 @@
*) Bugfix: if at least in one server was no the "listen" directive, then
nginx did not listen on the 80 port; the bug had appeared in 0.3.3.
- *) Bugfix: if the URI part is omitted in "proxy_pass" directive, the the
- 80 port was always used.
+ *) Bugfix: if the URI part is omitted in "proxy_pass" directive, the 80
+ port was always used.
Changes with nginx 0.3.5 21 Oct 2005
@@ -4693,7 +4748,7 @@
*) Bugfix: the segmentation fault occurred or the worker process may got
caught in an endless loop if the proxied or FastCGI server sent the
"Cache-Control" header line and the "expires" directive was used; in
- the proxied mode the the bug had appeared in 0.1.29.
+ the proxied mode the bug had appeared in 0.1.29.
Changes with nginx 0.1.42 23 Aug 2005
@@ -4768,8 +4823,8 @@
Changes with nginx 0.1.38 08 Jul 2005
- *) Feature: the "limit_rate" directive is supported in in proxy and
- FastCGI mode.
+ *) Feature: the "limit_rate" directive is supported in proxy and FastCGI
+ mode.
*) Feature: the "X-Accel-Limit-Rate" response header line is supported
in proxy and FastCGI mode.
@@ -4921,8 +4976,7 @@
*) Bugfix: if the length of the response part received at once from
proxied or FastCGI server was equal to 500, then nginx returns the
- 500 response code; in proxy mode the the bug had appeared in 0.1.29
- only.
+ 500 response code; in proxy mode the bug had appeared in 0.1.29 only.
*) Bugfix: nginx did not consider the directives with 8 or 9 parameters
as invalid.
@@ -5165,7 +5219,7 @@
*) Bugfix: nginx could not be built on NetBSD 2.0.
- *) Bugfix: the timeout may occur while reading of the the client request
+ *) Bugfix: the timeout may occur while reading of the client request
body via SSL connections.
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/CHANGES.ru
^
|
@@ -1,4 +1,59 @@
+Изменения в nginx 1.0.12 06.02.2012
+
+ *) Добавление: параметры TLSv1.1 и TLSv1.2 в директиве ssl_protocols.
+
+ *) Добавление: SSI команда if поддерживает выделения в регулярных
+ выражениях.
+
+ *) Исправление: SSI команда if не работала внутри команды block.
+
+ *) Исправление: в обработке ошибок при использовании AIO на FreeBSD.
+
+ *) Исправление: в инициализации библиотеки OpenSSL.
+
+ *) Исправление: директива worker_cpu_affinity могла не работать.
+
+ *) Исправление: директивы limit_conn_log_level и limit_req_log_level
+ могли не работать.
+
+ *) Исправление: директива read_ahead могла не работать при использовании
+ совместно с try_files и open_file_cache.
+
+ *) Исправление: директива proxy_cache_use_stale с параметром error не
+ возвращала ответ из кэша, если все бэкенды были признаны
+ неработающими.
+
+ *) Исправление: если в параметре inactive директивы proxy_cache_path
+ было указано малое время, в рабочем процессе мог произойти
+ segmentation fault.
+
+ *) Исправление: ответы из кэша могли зависать.
+
+ *) Исправление: в обработке ошибок при соединении с бэкендом.
+ Спасибо Piotr Sikora.
+
+ *) Исправление: в методе epoll.
+ Спасибо Yichun Zhang.
+
+ *) Исправление: переменная $sent_http_cache_control могла содержать
+ неверное значение при использовании директивы expires.
+ Спасибо Yichun Zhang.
+
+ *) Исправление: директива limit_rate не позволяла передавать на полной
+ скорости, даже если был указан очень большой лимит.
+
+ *) Исправление: директива sendfile_max_chunk не работала, если
+ использовалась директива limit_rate.
+
+ *) Исправление: nginx не собирался на Solaris; ошибка появилась в
+ 1.0.11.
+
+ *) Исправление: в модуле ngx_http_scgi_module.
+
+ *) Исправление: в модуле ngx_http_mp4_module.
+
+
Изменения в nginx 1.0.11 15.12.2011
*) Изменение: теперь двойные кавычки экранируется при выводе
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/LICENSE
^
|
@@ -1,5 +1,6 @@
/*
- * Copyright (C) 2002-2011 Igor Sysoev
+ * Copyright (C) 2002-2012 Igor Sysoev
+ * Copyright (C) 2011,2012 Nginx, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/cc/acc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
# aCC: HP ANSI C++ B3910B A.03.55.02
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/cc/bcc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
# Borland C++ 5.5
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/cc/ccc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
# Compaq C V6.5-207
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/cc/conf
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
LINK="\$(CC)"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/cc/gcc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
# gcc 2.7.2.3, 2.8.1, 2.95.4, egcs-1.1.2
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/cc/icc
^
|
@@ -1,8 +1,9 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
-# Intel C++ compiler 7.1, 8.0, 8.1, 9.0
+# Intel C++ compiler 7.1, 8.0, 8.1, 9.0, 11.1
NGX_ICC_VER=`$CC -V 2>&1 | grep 'Version' 2>&1 \
| sed -e 's/^.* Version \([^ ]*\) *Build.*$/\1/'`
@@ -15,32 +16,7 @@
# optimizations
CFLAGS="$CFLAGS -O"
-# inline the functions declared with __inline
-#CFLAGS="$CFLAGS -Ob1"
-# inline any function, at the compiler's discretion
-CFLAGS="$CFLAGS -Ob2"
-
-# multi-file IP optimizations
-case "$NGX_ICC_VER" in
- 9.*)
- IPO="-ipo"
- ;;
-
- # 8.1.38 under FreeBSD can not link -ipo
- 8.1)
- IPO="-ip"
- ;;
-
- *)
- IPO="-ipo -ipo_obj"
- ;;
-esac
-
-# single-file IP optimizations
-#IPO="-ip"
-CFLAGS="$CFLAGS $IPO"
-CORE_LINK="$CORE_LINK $IPO"
CORE_LINK="$CORE_LINK -opt_report_file=$NGX_OBJS/opt_report_file"
@@ -64,15 +40,15 @@
CFLAGS="$CFLAGS $CPU_OPT"
if [ ".$PCRE_OPT" = "." ]; then
- PCRE_OPT="-O $IPO $CPU_OPT"
+ PCRE_OPT="-O $CPU_OPT"
fi
if [ ".$MD5_OPT" = "." ]; then
- MD5_OPT="-O $IPO $CPU_OPT"
+ MD5_OPT="-O $CPU_OPT"
fi
if [ ".$ZLIB_OPT" = "." ]; then
- ZLIB_OPT="-O $IPO $CPU_OPT"
+ ZLIB_OPT="-O $CPU_OPT"
fi
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/cc/msvc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
# MSVC 6.0 SP2
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/cc/name
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
if [ "$NGX_PLATFORM" != win32 ]; then
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/cc/owc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
# Open Watcom C 1.0, 1.2, 1.3
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/cc/sunc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
# Sun C 5.7 Patch 117837-04 2005/05/11 Sun Studio 10
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/define
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
cat << END >> $NGX_AUTO_CONFIG_H
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/endianess
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
echo $ngx_n "checking for system endianess ...$ngx_c"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/feature
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
echo $ngx_n "checking for $ngx_feature ...$ngx_c"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/have
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
cat << END >> $NGX_AUTO_CONFIG_H
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/include
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
echo $ngx_n "checking for $ngx_include ...$ngx_c"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/init
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
NGX_MAKEFILE=$NGX_OBJS/Makefile
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/install
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
if [ $USE_PERL = YES ]; then
@@ -72,7 +73,7 @@
esac
-if test -e man/nginx.8 ; then
+if test -f man/nginx.8 ; then
NGX_MAN=man/nginx.8
else
NGX_MAN=docs/man/nginx.8
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/conf
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
if [ $USE_PCRE = YES -o $PCRE != NONE ]; then
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/geoip/conf
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
ngx_feature="GeoIP library"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/google-perftools/conf
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
ngx_feature="Google perftools"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/libatomic/conf
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
if [ $NGX_LIBATOMIC != YES ]; then
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/libatomic/make
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
cat << END >> $NGX_MAKEFILE
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/libgd/conf
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
ngx_feature="GD library"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/libxslt/conf
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
ngx_feature="libxslt"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/make
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
if [ $PCRE != NONE -a $PCRE != NO -a $PCRE != YES ]; then
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/md5/conf
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
if [ $MD5 != NONE ]; then
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/md5/make
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
case "$NGX_CC_NAME" in
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/md5/makefile.bcc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
CFLAGS = -q -O2 -tWM $(CPU_OPT) -DL_ENDIAN
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/md5/makefile.msvc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
CFLAGS = -nologo -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT) -D L_ENDIAN
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/md5/makefile.owc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
CFLAGS = -zq -bt=nt -bm -ot -op -oi -oe -s $(CPU_OPT)
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/openssl/conf
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
if [ $OPENSSL != NONE ]; then
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/openssl/make
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
case "$CC" in
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/openssl/makefile.bcc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
all:
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/openssl/makefile.msvc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
all:
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/pcre/conf
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
if [ $PCRE != NONE ]; then
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/pcre/make
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
case "$NGX_CC_NAME" in
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/pcre/makefile.bcc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
CFLAGS = -q -O2 -tWM -w-8004 $(CPU_OPT)
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/pcre/makefile.msvc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
CFLAGS = -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT)
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/pcre/makefile.owc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
CFLAGS = -c -zq -bt=nt -ot -op -oi -oe -s -bm $(CPU_OPT)
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/perl/conf
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
echo "checking for perl"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/perl/make
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
cat << END >> $NGX_MAKEFILE
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/sha1/conf
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
if [ $SHA1 != NONE ]; then
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/sha1/make
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
case "$NGX_CC_NAME" in
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/sha1/makefile.bcc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
CFLAGS = -q -O2 -tWM $(CPU_OPT) -DL_ENDIAN
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/sha1/makefile.msvc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
CFLAGS = -nologo -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT) -D L_ENDIAN
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/sha1/makefile.owc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
CFLAGS = -zq -bt=nt -bm -ot -op -oi -oe -s $(CPU_OPT)
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/test
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
echo $ngx_n "checking for $ngx_lib ...$ngx_c"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/zlib/conf
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
if [ $ZLIB != NONE ]; then
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/zlib/make
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
case "$NGX_CC_NAME" in
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/zlib/makefile.bcc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
CFLAGS = -q -O2 -tWM -w-8004 -w-8012 $(CPU_OPT)
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/zlib/makefile.msvc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
CFLAGS = -nologo -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT)
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/lib/zlib/makefile.owc
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
CFLAGS = -zq -bt=nt -ot -op -oi -oe -s -bm $(CPU_OPT)
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/make
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
echo "creating $NGX_MAKEFILE"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/modules
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
if [ $EVENT_SELECT = NO -a $EVENT_FOUND = NO ]; then
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/nohave
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
cat << END >> $NGX_AUTO_CONFIG_H
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/options
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
help=no
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/os/conf
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
echo "checking for $NGX_SYSTEM specific features"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/os/darwin
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
have=NGX_DARWIN . auto/have_headers
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/os/freebsd
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
have=NGX_FREEBSD . auto/have_headers
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/os/linux
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
have=NGX_LINUX . auto/have_headers
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/os/solaris
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
have=NGX_SOLARIS . auto/have_headers
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/os/win32
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
have=NGX_WIN32 . auto/have_headers
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/sources
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
CORE_MODULES="ngx_core_module ngx_errlog_module ngx_conf_module"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/stubs
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
have=NGX_SUPPRESS_WARN . auto/have
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/summary
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
### STUB
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/types/sizeof
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
echo $ngx_n "checking for $ngx_type size ...$ngx_c"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/types/typedef
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
echo $ngx_n "checking for $ngx_type ...$ngx_c"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/types/uintptr_t
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
echo $ngx_n "checking for uintptr_t ...$ngx_c"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/types/value
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
cat << END >> $NGX_AUTO_CONFIG_H
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/auto/unix
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
NGX_USER=${NGX_USER:-nobody}
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/configure
^
|
@@ -1,6 +1,7 @@
#!/bin/sh
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
. auto/options
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/man/nginx.8
^
|
@@ -1,5 +1,6 @@
.\"
.\" Copyright (c) 2010 Sergey A. Osokin
+.\" Copyright (c) 2011,2012 Nginx, Inc.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/nginx.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/nginx.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -8,8 +9,8 @@
#define _NGINX_H_INCLUDED_
-#define nginx_version 1000011
-#define NGINX_VERSION "1.0.11"
+#define nginx_version 1000012
+#define NGINX_VERSION "1.0.12"
#define NGINX_VER "nginx/" NGINX_VERSION
#define NGINX_VAR "NGINX"
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_array.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_array.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_buf.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_buf.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_conf_file.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_conf_file.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_config.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_connection.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_connection.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_core.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_cpuinfo.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_crc.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_crc32.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_crc32.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_crypt.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_cycle.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_cycle.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_file.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_file.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_hash.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -277,7 +278,7 @@
start = nelts / (bucket_size / (2 * sizeof(void *)));
start = start ? start : 1;
- if (hinit->max_size > 10000 && hinit->max_size / nelts < 100) {
+ if (hinit->max_size > 10000 && nelts && hinit->max_size / nelts < 100) {
start = hinit->max_size - 1000;
}
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_hash.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_inet.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_inet.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_list.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_list.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_log.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_log.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -121,15 +122,38 @@
#if (NGX_HAVE_VARIADIC_MACROS)
-#define ngx_log_debug0 ngx_log_debug
-#define ngx_log_debug1 ngx_log_debug
-#define ngx_log_debug2 ngx_log_debug
-#define ngx_log_debug3 ngx_log_debug
-#define ngx_log_debug4 ngx_log_debug
-#define ngx_log_debug5 ngx_log_debug
-#define ngx_log_debug6 ngx_log_debug
-#define ngx_log_debug7 ngx_log_debug
-#define ngx_log_debug8 ngx_log_debug
+#define ngx_log_debug0(level, log, err, fmt) \
+ ngx_log_debug(level, log, err, fmt)
+
+#define ngx_log_debug1(level, log, err, fmt, arg1) \
+ ngx_log_debug(level, log, err, fmt, arg1)
+
+#define ngx_log_debug2(level, log, err, fmt, arg1, arg2) \
+ ngx_log_debug(level, log, err, fmt, arg1, arg2)
+
+#define ngx_log_debug3(level, log, err, fmt, arg1, arg2, arg3) \
+ ngx_log_debug(level, log, err, fmt, arg1, arg2, arg3)
+
+#define ngx_log_debug4(level, log, err, fmt, arg1, arg2, arg3, arg4) \
+ ngx_log_debug(level, log, err, fmt, arg1, arg2, arg3, arg4)
+
+#define ngx_log_debug5(level, log, err, fmt, arg1, arg2, arg3, arg4, arg5) \
+ ngx_log_debug(level, log, err, fmt, arg1, arg2, arg3, arg4, arg5)
+
+#define ngx_log_debug6(level, log, err, fmt, \
+ arg1, arg2, arg3, arg4, arg5, arg6) \
+ ngx_log_debug(level, log, err, fmt, \
+ arg1, arg2, arg3, arg4, arg5, arg6)
+
+#define ngx_log_debug7(level, log, err, fmt, \
+ arg1, arg2, arg3, arg4, arg5, arg6, arg7) \
+ ngx_log_debug(level, log, err, fmt, \
+ arg1, arg2, arg3, arg4, arg5, arg6, arg7)
+
+#define ngx_log_debug8(level, log, err, fmt, \
+ arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
+ ngx_log_debug(level, log, err, fmt, \
+ arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
#else /* NO VARIADIC MACROS */
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_md5.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_murmurhash.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_open_file_cache.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_open_file_cache.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_output_chain.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_palloc.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_palloc.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_parse.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_parse.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_queue.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_queue.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_radix_tree.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_radix_tree.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_rbtree.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_rbtree.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_regex.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -136,23 +137,6 @@
}
-ngx_int_t
-ngx_regex_capture_count(ngx_regex_t *re)
-{
- int rc, n;
-
- n = 0;
-
- rc = pcre_fullinfo(re, NULL, PCRE_INFO_CAPTURECOUNT, &n);
-
- if (rc < 0) {
- return (ngx_int_t) rc;
- }
-
- return (ngx_int_t) n;
-}
-
-
ngx_int_t
ngx_regex_exec_array(ngx_array_t *a, ngx_str_t *s, ngx_log_t *log)
{
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_regex.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_resolver.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_resolver.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_sha1.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_shmtx.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_shmtx.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_slab.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_slab.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_spinlock.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_string.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_string.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_times.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/core/ngx_times.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/modules/ngx_aio_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/modules/ngx_devpoll_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/modules/ngx_epoll_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -683,6 +684,18 @@
if ((revents & EPOLLOUT) && wev->active) {
+ if (c->fd == -1 || wev->instance != instance) {
+
+ /*
+ * the stale event from a file descriptor
+ * that was just closed in this iteration
+ */
+
+ ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
+ "epoll: stale event %p", c);
+ continue;
+ }
+
if (flags & NGX_POST_THREAD_EVENTS) {
wev->posted_ready = 1;
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/modules/ngx_eventport_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/modules/ngx_kqueue_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/modules/ngx_poll_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/modules/ngx_rtsig_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/modules/ngx_select_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/modules/ngx_win32_select_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event_accept.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event_busy_lock.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event_busy_lock.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event_connect.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -159,6 +160,9 @@
ngx_log_error(level, c->log, err, "connect() to %V failed",
pc->name);
+ ngx_close_connection(c);
+ pc->connection = NULL;
+
return NGX_DECLINED;
}
}
@@ -240,12 +244,8 @@
failed:
- ngx_free_connection(c);
-
- if (ngx_close_socket(s) == -1) {
- ngx_log_error(NGX_LOG_ALERT, pc->log, ngx_socket_errno,
- ngx_close_socket_n " failed");
- }
+ ngx_close_connection(c);
+ pc->connection = NULL;
return NGX_ERROR;
}
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event_connect.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event_mutex.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event_openssl.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -78,18 +79,6 @@
};
-static long ngx_ssl_protocols[] = {
- SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1,
- SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1,
- SSL_OP_NO_SSLv2|SSL_OP_NO_TLSv1,
- SSL_OP_NO_TLSv1,
- SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3,
- SSL_OP_NO_SSLv3,
- SSL_OP_NO_SSLv2,
- 0,
-};
-
-
int ngx_ssl_connection_index;
int ngx_ssl_server_conf_index;
int ngx_ssl_session_cache_index;
@@ -103,8 +92,6 @@
SSL_library_init();
SSL_load_error_strings();
- ENGINE_load_builtin_engines();
-
OpenSSL_add_all_algorithms();
ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL);
@@ -171,9 +158,25 @@
SSL_CTX_set_options(ssl->ctx, SSL_OP_SINGLE_DH_USE);
- if (ngx_ssl_protocols[protocols >> 1] != 0) {
- SSL_CTX_set_options(ssl->ctx, ngx_ssl_protocols[protocols >> 1]);
+ if (!(protocols & NGX_SSL_SSLv2)) {
+ SSL_CTX_set_options(ssl->ctx, SSL_OP_NO_SSLv2);
+ }
+ if (!(protocols & NGX_SSL_SSLv3)) {
+ SSL_CTX_set_options(ssl->ctx, SSL_OP_NO_SSLv3);
+ }
+ if (!(protocols & NGX_SSL_TLSv1)) {
+ SSL_CTX_set_options(ssl->ctx, SSL_OP_NO_TLSv1);
+ }
+#ifdef SSL_OP_NO_TLSv1_1
+ if (!(protocols & NGX_SSL_TLSv1_1)) {
+ SSL_CTX_set_options(ssl->ctx, SSL_OP_NO_TLSv1_1);
+ }
+#endif
+#ifdef SSL_OP_NO_TLSv1_2
+ if (!(protocols & NGX_SSL_TLSv1_2)) {
+ SSL_CTX_set_options(ssl->ctx, SSL_OP_NO_TLSv1_2);
}
+#endif
#ifdef SSL_OP_NO_COMPRESSION
SSL_CTX_set_options(ssl->ctx, SSL_OP_NO_COMPRESSION);
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event_openssl.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -81,9 +82,11 @@
-#define NGX_SSL_SSLv2 2
-#define NGX_SSL_SSLv3 4
-#define NGX_SSL_TLSv1 8
+#define NGX_SSL_SSLv2 0x0002
+#define NGX_SSL_SSLv3 0x0004
+#define NGX_SSL_TLSv1 0x0008
+#define NGX_SSL_TLSv1_1 0x0010
+#define NGX_SSL_TLSv1_2 0x0020
#define NGX_SSL_BUFFER 1
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event_pipe.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event_pipe.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event_posted.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event_posted.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event_timer.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/event/ngx_event_timer.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_access_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_addition_filter_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_auth_basic_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_autoindex_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_browser_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_charset_filter_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_chunked_filter_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_dav_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_degradation_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_empty_gif_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_fastcgi_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -2214,6 +2215,10 @@
|NGX_HTTP_UPSTREAM_FT_OFF;
}
+ if (conf->upstream.cache_use_stale & NGX_HTTP_UPSTREAM_FT_ERROR) {
+ conf->upstream.cache_use_stale |= NGX_HTTP_UPSTREAM_FT_NOLIVE;
+ }
+
if (conf->upstream.cache_methods == 0) {
conf->upstream.cache_methods = prev->upstream.cache_methods;
}
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_flv_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_geo_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_geoip_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_gzip_filter_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_gzip_static_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_image_filter_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_index_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_limit_req_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -569,7 +570,9 @@
ngx_http_limit_req_conf_t *conf = child;
if (conf->shm_zone == NULL) {
- *conf = *prev;
+ conf->shm_zone = prev->shm_zone;
+ conf->burst = prev->burst;
+ conf->nodelay = prev->nodelay;
}
ngx_conf_merge_uint_value(conf->limit_log_level, prev->limit_log_level,
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_limit_zone_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -421,7 +422,8 @@
ngx_http_limit_zone_conf_t *conf = child;
if (conf->shm_zone == NULL) {
- *conf = *prev;
+ conf->shm_zone = prev->shm_zone;
+ conf->conn = prev->conn;
}
ngx_conf_merge_uint_value(conf->log_level, prev->log_level, NGX_LOG_ERR);
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_log_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_map_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_memcached_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_mp4_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
@@ -165,10 +166,10 @@
((u_char *) (p))[7] = n4
#define ngx_mp4_get_32value(p) \
- ( (((u_char *) (p))[0] << 24) \
- + (((u_char *) (p))[1] << 16) \
- + (((u_char *) (p))[2] << 8) \
- + (((u_char *) (p))[3]) )
+ ( ((uint32_t) ((u_char *) (p))[0] << 24) \
+ + ( ((u_char *) (p))[1] << 16) \
+ + ( ((u_char *) (p))[2] << 8) \
+ + ( ((u_char *) (p))[3]) )
#define ngx_mp4_set_32value(p, n) \
((u_char *) (p))[0] = (u_char) ((n) >> 24); \
@@ -2382,6 +2383,8 @@
data->pos = (u_char *) entry;
atom_size = sizeof(ngx_mp4_stsc_atom_t) + (data->last - data->pos);
+ ngx_mp4_set_32value(entry->chunk, 1);
+
if (trak->chunk_samples) {
first = &trak->stsc_chunk_entry;
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_not_modified_filter_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_proxy_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -1903,17 +1904,21 @@
(NGX_CONF_BITMASK_SET
|NGX_HTTP_UPSTREAM_FT_OFF));
+ if (conf->upstream.cache_use_stale & NGX_HTTP_UPSTREAM_FT_OFF) {
+ conf->upstream.cache_use_stale = NGX_CONF_BITMASK_SET
+ |NGX_HTTP_UPSTREAM_FT_OFF;
+ }
+
+ if (conf->upstream.cache_use_stale & NGX_HTTP_UPSTREAM_FT_ERROR) {
+ conf->upstream.cache_use_stale |= NGX_HTTP_UPSTREAM_FT_NOLIVE;
+ }
+
if (conf->upstream.cache_methods == 0) {
conf->upstream.cache_methods = prev->upstream.cache_methods;
}
conf->upstream.cache_methods |= NGX_HTTP_GET|NGX_HTTP_HEAD;
- if (conf->upstream.cache_use_stale & NGX_HTTP_UPSTREAM_FT_OFF) {
- conf->upstream.cache_use_stale = NGX_CONF_BITMASK_SET
- |NGX_HTTP_UPSTREAM_FT_OFF;
- }
-
ngx_conf_merge_ptr_value(conf->upstream.cache_bypass,
prev->upstream.cache_bypass, NULL);
@@ -2766,7 +2771,9 @@
plcf->upstream.ssl->log = cf->log;
if (ngx_ssl_create(plcf->upstream.ssl,
- NGX_SSL_SSLv2|NGX_SSL_SSLv3|NGX_SSL_TLSv1, NULL)
+ NGX_SSL_SSLv2|NGX_SSL_SSLv3|NGX_SSL_TLSv1
+ |NGX_SSL_TLSv1_1|NGX_SSL_TLSv1_2,
+ NULL)
!= NGX_OK)
{
return NGX_ERROR;
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_random_index_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_range_filter_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_realip_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_referer_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_rewrite_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_scgi_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
* Copyright (C) Manlio Perillo (manlio.perillo@gmail.com)
*/
@@ -36,7 +37,6 @@
static ngx_int_t ngx_http_scgi_reinit_request(ngx_http_request_t *r);
static ngx_int_t ngx_http_scgi_process_status_line(ngx_http_request_t *r);
static ngx_int_t ngx_http_scgi_process_header(ngx_http_request_t *r);
-static ngx_int_t ngx_http_scgi_process_header(ngx_http_request_t *r);
static void ngx_http_scgi_abort_request(ngx_http_request_t *r);
static void ngx_http_scgi_finalize_request(ngx_http_request_t *r, ngx_int_t rc);
@@ -824,11 +824,7 @@
}
if (rc == NGX_ERROR) {
-
- r->http_version = NGX_HTTP_VERSION_9;
-
u->process_header = ngx_http_scgi_process_header;
-
return ngx_http_scgi_process_header(r);
}
@@ -928,12 +924,12 @@
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"http scgi header done");
- if (r->http_version > NGX_HTTP_VERSION_9) {
+ u = r->upstream;
+
+ if (u->headers_in.status_n) {
return NGX_OK;
}
- u = r->upstream;
-
if (u->headers_in.status) {
status_line = &u->headers_in.status->value;
@@ -945,20 +941,15 @@
return NGX_HTTP_UPSTREAM_INVALID_HEADER;
}
- r->http_version = NGX_HTTP_VERSION_10;
u->headers_in.status_n = status;
u->headers_in.status_line = *status_line;
} else if (u->headers_in.location) {
- r->http_version = NGX_HTTP_VERSION_10;
u->headers_in.status_n = 302;
ngx_str_set(&u->headers_in.status_line,
"302 Moved Temporarily");
} else {
- ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
- "upstream sent neither valid HTTP/1.0 header "
- "nor \"Status\" header line");
u->headers_in.status_n = 200;
ngx_str_set(&u->headers_in.status_line, "200 OK");
}
@@ -1247,6 +1238,10 @@
|NGX_HTTP_UPSTREAM_FT_OFF;
}
+ if (conf->upstream.cache_use_stale & NGX_HTTP_UPSTREAM_FT_ERROR) {
+ conf->upstream.cache_use_stale |= NGX_HTTP_UPSTREAM_FT_NOLIVE;
+ }
+
if (conf->upstream.cache_methods == 0) {
conf->upstream.cache_methods = prev->upstream.cache_methods;
}
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_secure_link_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_split_clients_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_ssi_filter_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -78,6 +79,8 @@
ngx_str_t *name, ngx_uint_t key);
static ngx_int_t ngx_http_ssi_evaluate_string(ngx_http_request_t *r,
ngx_http_ssi_ctx_t *ctx, ngx_str_t *text, ngx_uint_t flags);
+static ngx_int_t ngx_http_ssi_regex_match(ngx_http_request_t *r,
+ ngx_str_t *pattern, ngx_str_t *str);
static ngx_int_t ngx_http_ssi_include(ngx_http_request_t *r,
ngx_http_ssi_ctx_t *ctx, ngx_str_t **params);
@@ -624,16 +627,6 @@
continue;
}
- if (cmd->conditional
- && (ctx->conditional == 0
- || ctx->conditional > cmd->conditional))
- {
- ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
- "invalid context of SSI command: \"%V\"",
- &ctx->command);
- goto ssi_error;
- }
-
if (!ctx->output && !cmd->block) {
if (ctx->block) {
@@ -709,6 +702,16 @@
}
}
+ if (cmd->conditional
+ && (ctx->conditional == 0
+ || ctx->conditional > cmd->conditional))
+ {
+ ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
+ "invalid context of SSI command: \"%V\"",
+ &ctx->command);
+ goto ssi_error;
+ }
+
if (ctx->params.nelts > NGX_HTTP_SSI_MAX_PARAMS) {
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
"too many SSI command paramters: \"%V\"",
@@ -1531,6 +1534,30 @@
ctx = ngx_http_get_module_ctx(r->main, ngx_http_ssi_filter_module);
+#if (NGX_PCRE)
+ {
+ ngx_str_t *value;
+
+ if (key >= '0' && key <= '9') {
+ i = key - '0';
+
+ if (i < ctx->ncaptures) {
+ value = ngx_palloc(r->pool, sizeof(ngx_str_t));
+ if (value == NULL) {
+ return NULL;
+ }
+
+ i *= 2;
+
+ value->data = ctx->captures_data + ctx->captures[i];
+ value->len = ctx->captures[i + 1] - ctx->captures[i];
+
+ return value;
+ }
+ }
+ }
+#endif
+
if (ctx->variables == NULL) {
return NULL;
}
@@ -1820,6 +1847,115 @@
static ngx_int_t
+ngx_http_ssi_regex_match(ngx_http_request_t *r, ngx_str_t *pattern,
+ ngx_str_t *str)
+{
+#if (NGX_PCRE)
+ int rc, *captures;
+ u_char *p, errstr[NGX_MAX_CONF_ERRSTR];
+ size_t size;
+ ngx_int_t key;
+ ngx_str_t *vv, name, value;
+ ngx_uint_t i, n;
+ ngx_http_ssi_ctx_t *ctx;
+ ngx_http_ssi_var_t *var;
+ ngx_regex_compile_t rgc;
+
+ ngx_memzero(&rgc, sizeof(ngx_regex_compile_t));
+
+ rgc.pattern = *pattern;
+ rgc.pool = r->pool;
+ rgc.err.len = NGX_MAX_CONF_ERRSTR;
+ rgc.err.data = errstr;
+
+ if (ngx_regex_compile(&rgc) != NGX_OK) {
+ ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "%V", &rgc.err);
+ return NGX_HTTP_SSI_ERROR;
+ }
+
+ n = (rgc.captures + 1) * 3;
+
+ captures = ngx_palloc(r->pool, n * sizeof(int));
+ if (captures == NULL) {
+ return NGX_ERROR;
+ }
+
+ rc = ngx_regex_exec(rgc.regex, str, captures, n);
+
+ if (rc < NGX_REGEX_NO_MATCHED) {
+ ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
+ ngx_regex_exec_n " failed: %i on \"%V\" using \"%V\"",
+ rc, str, pattern);
+ return NGX_HTTP_SSI_ERROR;
+ }
+
+ if (rc == NGX_REGEX_NO_MATCHED) {
+ return NGX_DECLINED;
+ }
+
+ ctx = ngx_http_get_module_ctx(r->main, ngx_http_ssi_filter_module);
+
+ ctx->ncaptures = rc;
+ ctx->captures = captures;
+ ctx->captures_data = str->data;
+
+ if (rgc.named_captures > 0) {
+
+ if (ctx->variables == NULL) {
+ ctx->variables = ngx_list_create(r->pool, 4,
+ sizeof(ngx_http_ssi_var_t));
+ if (ctx->variables == NULL) {
+ return NGX_ERROR;
+ }
+ }
+
+ size = rgc.name_size;
+ p = rgc.names;
+
+ for (i = 0; i < (ngx_uint_t) rgc.named_captures; i++, p += size) {
+
+ name.data = &p[2];
+ name.len = ngx_strlen(name.data);
+
+ n = 2 * ((p[0] << 8) + p[1]);
+
+ value.data = &str->data[captures[n]];
+ value.len = captures[n + 1] - captures[n];
+
+ key = ngx_hash_strlow(name.data, name.data, name.len);
+
+ vv = ngx_http_ssi_get_variable(r, &name, key);
+
+ if (vv) {
+ *vv = value;
+ continue;
+ }
+
+ var = ngx_list_push(ctx->variables);
+ if (var == NULL) {
+ return NGX_ERROR;
+ }
+
+ var->name = name;
+ var->key = key;
+ var->value = value;
+ }
+ }
+
+ return NGX_OK;
+
+#else
+
+ ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
+ "the using of the regex \"%V\" in SSI requires PCRE library",
+ pattern);
+ return NGX_HTTP_SSI_ERROR;
+
+#endif
+}
+
+
+static ngx_int_t
ngx_http_ssi_include(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx,
ngx_str_t **params)
{
@@ -2451,39 +2587,17 @@
}
} else {
-#if (NGX_PCRE)
- ngx_regex_compile_t rgc;
- u_char errstr[NGX_MAX_CONF_ERRSTR];
-
right.data[right.len] = '\0';
- ngx_memzero(&rgc, sizeof(ngx_regex_compile_t));
-
- rgc.pattern = right;
- rgc.pool = r->pool;
- rgc.err.len = NGX_MAX_CONF_ERRSTR;
- rgc.err.data = errstr;
+ rc = ngx_http_ssi_regex_match(r, &right, &left);
- if (ngx_regex_compile(&rgc) != NGX_OK) {
- ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "%V", &rgc.err);
- return NGX_HTTP_SSI_ERROR;
- }
-
- rc = ngx_regex_exec(rgc.regex, &left, NULL, 0);
-
- if (rc < NGX_REGEX_NO_MATCHED) {
- ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
- ngx_regex_exec_n " failed: %i on \"%V\" using \"%V\"",
- rc, &left, &right);
- return NGX_HTTP_SSI_ERROR;
+ if (rc == NGX_OK) {
+ rc = 0;
+ } else if (rc == NGX_DECLINED) {
+ rc = -1;
+ } else {
+ return rc;
}
-#else
- ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
- "the using of the regex \"%V\" in SSI "
- "requires PCRE library", &right);
-
- return NGX_HTTP_SSI_ERROR;
-#endif
}
if ((rc == 0 && !negative) || (rc != 0 && negative)) {
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_ssi_filter_module.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -64,6 +65,12 @@
ngx_list_t *variables;
ngx_array_t *blocks;
+#if (NGX_PCRE)
+ ngx_uint_t ncaptures;
+ int *captures;
+ u_char *captures_data;
+#endif
+
unsigned conditional:2;
unsigned encoding:2;
unsigned block:1;
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_ssl_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -37,6 +38,8 @@
{ ngx_string("SSLv2"), NGX_SSL_SSLv2 },
{ ngx_string("SSLv3"), NGX_SSL_SSLv3 },
{ ngx_string("TLSv1"), NGX_SSL_TLSv1 },
+ { ngx_string("TLSv1.1"), NGX_SSL_TLSv1_1 },
+ { ngx_string("TLSv1.2"), NGX_SSL_TLSv1_2 },
{ ngx_null_string, 0 }
};
@@ -364,7 +367,8 @@
prev->prefer_server_ciphers, 0);
ngx_conf_merge_bitmask_value(conf->protocols, prev->protocols,
- (NGX_CONF_BITMASK_SET|NGX_SSL_SSLv3|NGX_SSL_TLSv1));
+ (NGX_CONF_BITMASK_SET|NGX_SSL_SSLv3|NGX_SSL_TLSv1
+ |NGX_SSL_TLSv1_1|NGX_SSL_TLSv1_2));
ngx_conf_merge_uint_value(conf->verify, prev->verify, 0);
ngx_conf_merge_uint_value(conf->verify_depth, prev->verify_depth, 1);
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_ssl_module.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_static_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_stub_status_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_sub_filter_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_upstream_ip_hash_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_userid_filter_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_uwsgi_module.c
^
|
@@ -3,6 +3,7 @@
* Copyright (C) Unbit S.a.s. 2009-2010
* Copyright (C) 2008 Manlio Perillo (manlio.perillo@gmail.com)
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -1298,6 +1299,10 @@
|NGX_HTTP_UPSTREAM_FT_OFF;
}
+ if (conf->upstream.cache_use_stale & NGX_HTTP_UPSTREAM_FT_ERROR) {
+ conf->upstream.cache_use_stale |= NGX_HTTP_UPSTREAM_FT_NOLIVE;
+ }
+
if (conf->upstream.cache_methods == 0) {
conf->upstream.cache_methods = prev->upstream.cache_methods;
}
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/ngx_http_xslt_filter_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/perl/Makefile.PL
^
|
@@ -1,5 +1,6 @@
# Copyright (C) Igor Sysoev
+# Copyright (C) Nginx, Inc.
use 5.006001;
use ExtUtils::MakeMaker;
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/perl/nginx.pm
^
|
@@ -48,7 +48,7 @@
HTTP_INSUFFICIENT_STORAGE
);
-our $VERSION = '1.0.11';
+our $VERSION = '1.0.12';
require XSLoader;
XSLoader::load('nginx', $VERSION);
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/perl/nginx.xs
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/perl/ngx_http_perl_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/modules/perl/ngx_http_perl_module.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_busy_lock.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_busy_lock.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_cache.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_config.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_copy_filter_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -189,7 +190,7 @@
rc = n;
- if (file->aio) {
+ if (rc == NGX_AGAIN) {
file->aio->data = r;
file->aio->handler = ngx_http_copy_aio_sendfile_event_handler;
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_core_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -1289,6 +1290,7 @@
ngx_memzero(&of, sizeof(ngx_open_file_info_t));
+ of.read_ahead = clcf->read_ahead;
of.directio = clcf->directio;
of.valid = clcf->open_file_cache_valid;
of.min_uses = clcf->open_file_cache_min_uses;
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_core_module.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_file_cache.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -387,6 +388,13 @@
return NGX_DECLINED;
}
+ if (h->body_start > c->body_start) {
+ ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,
+ "cache file \"%s\" has too long header",
+ c->file.name.data);
+ return NGX_DECLINED;
+ }
+
c->buf->last += n;
c->valid_sec = h->valid_sec;
@@ -1107,12 +1115,12 @@
/*
* abnormally exited workers may leave locked cache entries,
* and although it may be safe to remove them completely,
- * we prefer to remove them from inactive queue and rbtree
- * only, and to allow other leaks
+ * we prefer to just move them to the top of the inactive queue
*/
ngx_queue_remove(q);
- ngx_rbtree_delete(&cache->sh->rbtree, &fcn->node);
+ fcn->expire = ngx_time() + cache->inactive;
+ ngx_queue_insert_head(&cache->sh->queue, &fcn->queue);
ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0,
"ignore long locked inactive cache entry %*s, count:%d",
@@ -1709,70 +1717,4 @@
}
return NGX_CONF_OK;
-}
-
-
-ngx_int_t
-ngx_http_cache(ngx_http_request_t *r, ngx_array_t *no_cache)
-{
- ngx_str_t val;
- ngx_uint_t i;
- ngx_http_complex_value_t *cv;
-
- cv = no_cache->elts;
-
- for (i = 0; i < no_cache->nelts; i++) {
- if (ngx_http_complex_value(r, &cv[i], &val) != NGX_OK) {
- return NGX_ERROR;
- }
-
- if (val.len && val.data[0] != '0') {
- return NGX_DECLINED;
- }
- }
-
- return NGX_OK;
-}
-
-
-char *
-ngx_http_no_cache_set_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
-{
- char *p = conf;
-
- ngx_str_t *value;
- ngx_uint_t i;
- ngx_array_t **a;
- ngx_http_complex_value_t *cv;
- ngx_http_compile_complex_value_t ccv;
-
- a = (ngx_array_t **) (p + cmd->offset);
-
- if (*a == NGX_CONF_UNSET_PTR) {
- *a = ngx_array_create(cf->pool, 1, sizeof(ngx_http_complex_value_t));
- if (*a == NULL) {
- return NGX_CONF_ERROR;
- }
- }
-
- value = cf->args->elts;
-
- for (i = 1; i < cf->args->nelts; i++) {
- cv = ngx_array_push(*a);
- if (cv == NULL) {
- return NGX_CONF_ERROR;
- }
-
- ngx_memzero(&ccv, sizeof(ngx_http_compile_complex_value_t));
-
- ccv.cf = cf;
- ccv.value = &value[i];
- ccv.complex_value = cv;
-
- if (ngx_http_compile_complex_value(&ccv) != NGX_OK) {
- return NGX_CONF_ERROR;
- }
- }
-
- return NGX_CONF_OK;
}
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_parse.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_parse_time.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_postpone_filter_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_request.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_request.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_request_body.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_script.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_script.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_special_response.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_upstream.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_upstream.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_upstream_round_robin.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_upstream_round_robin.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_variables.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -640,8 +641,8 @@
ngx_http_variable_headers(ngx_http_request_t *r, ngx_http_variable_value_t *v,
uintptr_t data)
{
- ssize_t len;
- u_char *p;
+ size_t len;
+ u_char *p, *end;
ngx_uint_t i, n;
ngx_array_t *a;
ngx_table_elt_t **h;
@@ -649,18 +650,30 @@
a = (ngx_array_t *) ((char *) r + data);
n = a->nelts;
+ h = a->elts;
+
+ len = 0;
+
+ for (i = 0; i < n; i++) {
+
+ if (h[i]->hash == 0) {
+ continue;
+ }
- if (n == 0) {
+ len += h[i]->value.len + sizeof("; ") - 1;
+ }
+
+ if (len == 0) {
v->not_found = 1;
return NGX_OK;
}
+ len -= sizeof("; ") - 1;
+
v->valid = 1;
v->no_cacheable = 0;
v->not_found = 0;
- h = a->elts;
-
if (n == 1) {
v->len = (*h)->value.len;
v->data = (*h)->value.data;
@@ -668,12 +681,6 @@
return NGX_OK;
}
- len = - (ssize_t) (sizeof("; ") - 1);
-
- for (i = 0; i < n; i++) {
- len += h[i]->value.len + sizeof("; ") - 1;
- }
-
p = ngx_pnalloc(r->pool, len);
if (p == NULL) {
return NGX_ERROR;
@@ -682,10 +689,17 @@
v->len = len;
v->data = p;
+ end = p + len;
+
for (i = 0; /* void */ ; i++) {
+
+ if (h[i]->hash == 0) {
+ continue;
+ }
+
p = ngx_copy(p, h[i]->value.data, h[i]->value.len);
- if (i == n - 1) {
+ if (p == end) {
break;
}
@@ -738,6 +752,10 @@
i = 0;
}
+ if (header[i].hash == 0) {
+ continue;
+ }
+
for (n = 0; n + prefix < var->len && n < header[i].key.len; n++) {
ch = header[i].key.data[n];
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_variables.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/http/ngx_http_write_filter_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -223,11 +224,14 @@
return NGX_AGAIN;
}
- } else if (clcf->sendfile_max_chunk) {
- limit = clcf->sendfile_max_chunk;
+ if (clcf->sendfile_max_chunk
+ && (off_t) clcf->sendfile_max_chunk < limit)
+ {
+ limit = clcf->sendfile_max_chunk;
+ }
} else {
- limit = 0;
+ limit = clcf->sendfile_max_chunk;
}
sent = c->sent;
@@ -262,17 +266,18 @@
}
}
- delay = (ngx_msec_t) ((nsent - sent) * 1000 / r->limit_rate + 1);
+ delay = (ngx_msec_t) ((nsent - sent) * 1000 / r->limit_rate);
if (delay > 0) {
+ limit = 0;
c->write->delayed = 1;
ngx_add_timer(c->write, delay);
}
+ }
- } else if (c->write->ready
- && clcf->sendfile_max_chunk
- && (size_t) (c->sent - sent)
- >= clcf->sendfile_max_chunk - 2 * ngx_pagesize)
+ if (limit
+ && c->write->ready
+ && c->sent - sent >= limit - (off_t) (2 * ngx_pagesize))
{
c->write->delayed = 1;
ngx_add_timer(c->write, 1);
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_auth_http_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_core_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_handler.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_imap_handler.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_imap_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_imap_module.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_parse.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_pop3_handler.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_pop3_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_pop3_module.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_proxy_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_smtp_handler.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_smtp_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_smtp_module.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_ssl_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -37,6 +38,8 @@
{ ngx_string("SSLv2"), NGX_SSL_SSLv2 },
{ ngx_string("SSLv3"), NGX_SSL_SSLv3 },
{ ngx_string("TLSv1"), NGX_SSL_TLSv1 },
+ { ngx_string("TLSv1.1"), NGX_SSL_TLSv1_1 },
+ { ngx_string("TLSv1.2"), NGX_SSL_TLSv1_2 },
{ ngx_null_string, 0 }
};
@@ -206,7 +209,8 @@
prev->prefer_server_ciphers, 0);
ngx_conf_merge_bitmask_value(conf->protocols, prev->protocols,
- (NGX_CONF_BITMASK_SET|NGX_SSL_SSLv3|NGX_SSL_TLSv1));
+ (NGX_CONF_BITMASK_SET|NGX_SSL_SSLv3|NGX_SSL_TLSv1
+ |NGX_SSL_TLSv1_1|NGX_SSL_TLSv1_2));
ngx_conf_merge_str_value(conf->certificate, prev->certificate, "");
ngx_conf_merge_str_value(conf->certificate_key, prev->certificate_key, "");
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/mail/ngx_mail_ssl_module.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/misc/ngx_google_perftools_module.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_aio_read.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_aio_read_chain.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_aio_write.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_aio_write_chain.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_alloc.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_alloc.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_atomic.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_channel.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_channel.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_daemon.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_darwin.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_darwin_config.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_darwin_init.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_darwin_sendfile_chain.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_errno.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_errno.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_file_aio_read.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -156,24 +157,15 @@
return NGX_ERROR;
}
- if (n != 0) {
- if (n == NGX_EINPROGRESS) {
- if (ev->ready) {
- ev->ready = 0;
- ngx_log_error(NGX_LOG_ALERT, file->log, n,
- "aio_read(\"%V\") still in progress",
- &file->name);
- }
-
- return NGX_AGAIN;
+ if (n == NGX_EINPROGRESS) {
+ if (ev->ready) {
+ ev->ready = 0;
+ ngx_log_error(NGX_LOG_ALERT, file->log, n,
+ "aio_read(\"%V\") still in progress",
+ &file->name);
}
- aio->err = n;
- ev->ready = 0;
-
- ngx_log_error(NGX_LOG_CRIT, file->log, n,
- "aio_read(\"%V\") failed", &file->name);
- return NGX_ERROR;
+ return NGX_AGAIN;
}
n = aio_return(&aio->aiocb);
@@ -181,9 +173,9 @@
if (n == -1) {
err = ngx_errno;
aio->err = err;
- ev->ready = 0;
+ ev->ready = 1;
- ngx_log_error(NGX_LOG_ALERT, file->log, err,
+ ngx_log_error(NGX_LOG_CRIT, file->log, err,
"aio_return(\"%V\") failed", &file->name);
return NGX_ERROR;
}
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_files.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_files.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_freebsd.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_freebsd_config.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_freebsd_init.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_freebsd_rfork_thread.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_freebsd_rfork_thread.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_freebsd_sendfile_chain.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -246,9 +247,14 @@
}
}
- hdtr.headers = (struct iovec *) header.elts;
+ /*
+ * sendfile() does unneeded work if sf_hdtr's count is 0,
+ * but corresponding pointer is not NULL
+ */
+
+ hdtr.headers = header.nelts ? (struct iovec *) header.elts: NULL;
hdtr.hdr_cnt = header.nelts;
- hdtr.trailers = (struct iovec *) trailer.elts;
+ hdtr.trailers = trailer.nelts ? (struct iovec *) trailer.elts: NULL;
hdtr.trl_cnt = trailer.nelts;
/*
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_gcc_atomic_amd64.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_gcc_atomic_ppc.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_gcc_atomic_sparc64.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_gcc_atomic_x86.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_linux.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_linux_aio_read.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_linux_config.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_linux_init.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_linux_sendfile_chain.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_os.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_posix_config.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_posix_init.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_process.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_process.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_process_cycle.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
@@ -914,7 +915,10 @@
ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0,
"sched_setaffinity(0x%08Xl)", cpu_affinity);
- if (sched_setaffinity(0, 32, (cpu_set_t *) &cpu_affinity) == -1) {
+ if (sched_setaffinity(0, sizeof(cpu_affinity),
+ (cpu_set_t *) &cpu_affinity)
+ == -1)
+ {
ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno,
"sched_setaffinity(0x%08Xl) failed", cpu_affinity);
}
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_process_cycle.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_pthread_thread.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_readv_chain.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_recv.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_send.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_setproctitle.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_setproctitle.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_shmem.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_shmem.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_socket.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_socket.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_solaris.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_solaris_config.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_solaris_init.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_solaris_sendfilev_chain.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_sunpro_amd64.il
^
|
@@ -1,5 +1,6 @@
/
/ Copyright (C) Igor Sysoev
+/ Copyright (C) Nginx, Inc.
/
/ ngx_atomic_uint_t ngx_atomic_cmp_set(ngx_atomic_t *lock,
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_sunpro_atomic_sparc64.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_sunpro_sparc64.il
^
|
@@ -1,5 +1,6 @@
/
/ Copyright (C) Igor Sysoev
+/ Copyright (C) Nginx, Inc.
/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_sunpro_x86.il
^
|
@@ -1,5 +1,6 @@
/
/ Copyright (C) Igor Sysoev
+/ Copyright (C) Nginx, Inc.
/
/ ngx_atomic_uint_t ngx_atomic_cmp_set(ngx_atomic_t *lock,
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_thread.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_time.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_time.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_udp_recv.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_user.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_user.h
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/ngx_writev_chain.c
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|
[-]
[+]
|
Changed |
nginx-1.0.12.tar.bz2/src/os/unix/rfork_thread.S
^
|
@@ -1,6 +1,7 @@
/*
* Copyright (C) Igor Sysoev
+ * Copyright (C) Nginx, Inc.
*/
|