Skip to content

Commit

Permalink
Changes with nginx 0.7.56 11 May 2009
Browse files Browse the repository at this point in the history
    *) Feature: nginx/Windows supports IPv6 in a "listen" directive of the
       HTTP module.

    *) Bugfix: in ngx_http_image_filter_module.
  • Loading branch information
igorsysoev authored and kolbyjack committed May 11, 2009
1 parent 0a2a082 commit 672550f
Show file tree
Hide file tree
Showing 28 changed files with 618 additions and 228 deletions.
10 changes: 9 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@

Changes with nginx 0.7.56 11 May 2009

*) Feature: nginx/Windows supports IPv6 in a "listen" directive of the
HTTP module.

*) Bugfix: in ngx_http_image_filter_module.


Changes with nginx 0.7.55 06 May 2009

*) Bugfix: the http_XXX parameters in "proxy_cache_use_stale" and
Expand All @@ -7,7 +15,7 @@ Changes with nginx 0.7.55 06 May 2009
*) Bugfix: fastcgi cache did not cache header only responses.

*) Bugfix: of "select() failed (9: Bad file descriptor)" error in
nginx/Unix and "select() failed (10022: ...)" error in nginx/Windows.
nginx/Unix and "select() failed (10038: ...)" error in nginx/Windows.

*) Bugfix: a segmentation fault might occur in worker process, if an
"debug_connection" directive was used; the bug had appeared in
Expand Down
10 changes: 9 additions & 1 deletion CHANGES.ru
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@

Изменения в nginx 0.7.56 11.05.2009

*) Добавление: nginx/Windows поддерживает IPv6 в директиве listen
модуля HTTP.

*) Исправление: в модуле ngx_http_image_filter_module.


Изменения в nginx 0.7.55 06.05.2009

*) Исправление: параметры http_XXX в директиве proxy_cache_use_stale и
Expand All @@ -8,7 +16,7 @@
заголовка.

*) Исправление: ошибки "select() failed (9: Bad file descriptor)" в
nginx/Unix и "select() failed (10022: ...)" в nginx/Windows.
nginx/Unix и "select() failed (10038: ...)" в nginx/Windows.

*) Исправление: при использовании директивы debug_connection в рабочем
процессе мог произойти segmentation fault; ошибка появилась в 0.7.54.
Expand Down
19 changes: 4 additions & 15 deletions auto/cc/msvc
Original file line number Diff line number Diff line change
Expand Up @@ -124,25 +124,14 @@ ngx_binout="-Fe"
ngx_objext="obj"
ngx_binext=".exe"

if [ "$BMAKE" = nmake ]; then
# MS nmake

ngx_long_start='@<<
ngx_long_start='@<<
'
ngx_long_end='<<'
ngx_long_regex_cont=' \
ngx_long_end='<<'
ngx_long_regex_cont=' \
'
ngx_long_cont='
ngx_long_cont='
'

else
# Borland make

ngx_long_start='@&&|
'
ngx_long_end='|'
fi

# MSVC understand / in path
#ngx_regex_dirsep='\\'
#ngx_dirsep="\\"
6 changes: 6 additions & 0 deletions auto/cc/owc
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,9 @@ ngx_binext=".exe"

ngx_regex_dirsep='\\'
ngx_dirsep="\\"

ngx_regex_cont=' '
ngx_long_regex_cont=' '
ngx_cont=' '
ngx_long_cont=' '
ngx_tab=' '
15 changes: 0 additions & 15 deletions auto/cc/sunc
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,6 @@ fi
case "$NGX_MACHINE" in

i86pc)
ngx_feature="PAUSE hardware capability bug"
ngx_feature_name=
ngx_feature_run=bug
ngx_feature_incs=
ngx_feature_path=
ngx_feature_libs=
ngx_feature_test='__asm ("pause")'

. auto/feature

if [ $ngx_found = yes ]; then
# disable [ PAUSE ] hwcap for Sun Studio 11
CORE_LINK="$CORE_LINK -Msrc/os/unix/ngx_sunpro_x86.map"
fi

NGX_AUX=" src/os/unix/ngx_sunpro_x86.il"
;;

Expand Down
30 changes: 15 additions & 15 deletions auto/lib/md5/conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,30 @@ else

if [ "$NGX_PLATFORM" != win32 ]; then

MD5=NO
MD5=NO

# Solaris 8/9
# FreeBSD, Solaris 10

ngx_feature="rsaref md5 library"
ngx_feature_name=
ngx_feature_run=no
ngx_feature_incs="#include <md5.h>"
ngx_feature_path=
ngx_feature_libs="-lmd5"
ngx_feature_test="MD5_CTX md5; MD5Init(&md5)"
. auto/feature
ngx_feature="system md library"
ngx_feature_name=
ngx_feature_run=no
ngx_feature_incs="#include <md5.h>"
ngx_feature_path=
ngx_feature_libs="-lmd"
ngx_feature_test="MD5_CTX md5; MD5Init(&md5)"
. auto/feature

ngx_md5_lib="system md5"
ngx_md5_lib="system md"

if [ $ngx_found = no ]; then

# FreeBSD
# Solaris 8/9

ngx_feature="rsaref md library"
ngx_feature_libs="-lmd"
ngx_feature="system md5 library"
ngx_feature_libs="-lmd5"
. auto/feature

ngx_md5_lib="system md"
ngx_md5_lib="system md5"
fi

if [ $ngx_found = no ]; then
Expand Down
4 changes: 2 additions & 2 deletions auto/lib/openssl/conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if [ $OPENSSL != NONE ]; then

case "$NGX_SYSTEM" in
SunOS|Linux)
CORE_LIBS="$CORE_LIBS -ldl"
CORE_LIBS="$CORE_LIBS $NGX_LIBDL"
;;
esac

Expand Down Expand Up @@ -72,7 +72,7 @@ else

case "$NGX_SYSTEM" in
SunOS)
CORE_LIBS="$CORE_LIBS -ldl"
CORE_LIBS="$CORE_LIBS $NGX_LIBDL"
;;
esac
fi
Expand Down
14 changes: 3 additions & 11 deletions auto/make
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Copyright (C) Igor Sysoev


echo "creating $NGX_MAKEFILE"

mkdir -p $NGX_OBJS/src/core $NGX_OBJS/src/event $NGX_OBJS/src/event/modules \
$NGX_OBJS/src/os/unix $NGX_OBJS/src/os/win32 \
$NGX_OBJS/src/http $NGX_OBJS/src/http/modules \
Expand All @@ -23,22 +25,12 @@ LINK = $LINK

END


if test -n "$NGX_PERL_CFLAGS"; then
echo NGX_PERL_CFLAGS = $NGX_PERL_CFLAGS >> $NGX_MAKEFILE
echo NGX_PM_CFLAGS = $NGX_PM_CFLAGS >> $NGX_MAKEFILE
fi

if [ "$BMAKE" = wmake ]; then
echo MAKE = wmake >> $NGX_MAKEFILE

ngx_regex_cont=' '
ngx_long_regex_cont=' '
ngx_cont=' '
ngx_long_cont=' '
ngx_tab=' '

fi


# ALL_INCS, required by the addons and by OpenWatcom C precompiled headers

Expand Down
4 changes: 2 additions & 2 deletions auto/os/solaris
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ have=NGX_SOLARIS . auto/have_headers
CORE_INCS="$UNIX_INCS"
CORE_DEPS="$UNIX_DEPS $SOLARIS_DEPS"
CORE_SRCS="$UNIX_SRCS $SOLARIS_SRCS "
CORE_LIBS="$CORE_LIBS -lsocket -lnsl -lrt"
CORE_LIBS="$CORE_LIBS -lsocket -lnsl"

NGX_RPATH=YES

# Solaris's make does not support a blank line between target and rules
ngx_spacer=

CC_AUX_FLAGS="$CC_AUX_FLAGS -D_FILE_OFFSET_BITS=64 -lsocket -lnsl -lrt"
CC_AUX_FLAGS="$CC_AUX_FLAGS -D_FILE_OFFSET_BITS=64 -lsocket -lnsl"


if [ $ZLIB_ASM != NO ]; then
Expand Down
5 changes: 5 additions & 0 deletions auto/os/win32
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ CORE_SRCS="$WIN32_SRCS $IOCP_SRCS"
OS_CONFIG="$WIN32_CONFIG"
CORE_LIBS="$CORE_LIBS advapi32.lib ws2_32.lib"
NGX_ICONS="$NGX_WIN32_ICONS"
SELECT_SRCS=$WIN32_SELECT_SRCS

EVENT_MODULES="$EVENT_MODULES $IOCP_MODULE"
EVENT_FOUND=YES
Expand All @@ -19,5 +20,9 @@ if [ $EVENT_SELECT = NO ]; then
EVENT_MODULES="$EVENT_MODULES $SELECT_MODULE"
fi

if [ $NGX_IPV6 = YES ]; then
have=NGX_HAVE_INET6 . auto/have
fi

have=NGX_HAVE_AIO . auto/have
have=NGX_HAVE_IOCP . auto/have
1 change: 1 addition & 0 deletions auto/sources
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ EVENT_SRCS="src/event/ngx_event.c \

SELECT_MODULE=ngx_select_module
SELECT_SRCS=src/event/modules/ngx_select_module.c
WIN32_SELECT_SRCS=src/event/modules/ngx_win32_select_module.c

POLL_MODULE=ngx_poll_module
POLL_SRCS=src/event/modules/ngx_poll_module.c
Expand Down
34 changes: 34 additions & 0 deletions auto/unix
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,40 @@ ngx_feature_test="sched_yield()"
. auto/feature


if [ $ngx_found != yes ]; then

ngx_feature="sched_yield() in librt"
ngx_feature_libs="-lrt"
. auto/feature

if [ $ngx_found = yes ]; then
CORE_LIBS="$CORE_LIBS -lrt"
fi
fi


ngx_feature="dlopen()"
ngx_feature_name=
ngx_feature_run=no
ngx_feature_incs="#include <dlfcn.h>"
ngx_feature_path=
ngx_feature_libs=
ngx_feature_test="dlopen(NULL, 0)"
. auto/feature


if [ $ngx_found != yes ]; then

ngx_feature="dlopen() in libdl"
ngx_feature_libs="-ldl"
. auto/feature

if [ $ngx_found = yes ]; then
NGX_LIBDL="-ldl"
fi
fi


ngx_feature="mmap(MAP_ANON|MAP_SHARED)"
ngx_feature_name="NGX_HAVE_MAP_ANON"
ngx_feature_run=yes
Expand Down
6 changes: 6 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ if test -z "$NGX_PLATFORM"; then

NGX_PLATFORM="$NGX_SYSTEM:$NGX_RELEASE:$NGX_MACHINE";

case "$NGX_SYSTEM" in
MINGW32_*)
NGX_PLATFORM=win32
;;
esac

else
echo "building for $NGX_PLATFORM"
NGX_SYSTEM=$NGX_PLATFORM
Expand Down
4 changes: 2 additions & 2 deletions src/core/nginx.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#define _NGINX_H_INCLUDED_


#define nginx_version 7055
#define NGINX_VERSION "0.7.55"
#define nginx_version 7056
#define NGINX_VERSION "0.7.56"
#define NGINX_VER "nginx/" NGINX_VERSION

#define NGINX_VAR "NGINX"
Expand Down
14 changes: 14 additions & 0 deletions src/core/ngx_inet.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,22 @@ ngx_parse_inet6_url(ngx_pool_t *pool, ngx_url_t *u)

(void) ngx_cpystrn(p, host, len);

#if (NGX_WIN32)

rc = WSAStringToAddress((char *) p, AF_INET6, NULL,
(SOCKADDR *) sin6, &u->socklen);
rc = !rc;

if (u->port) {
sin6->sin6_port = htons(u->port);
}

#else

rc = inet_pton(AF_INET6, (const char *) p, &sin6->sin6_addr);

#endif

ngx_free(p);

if (rc == 0) {
Expand Down
Loading

0 comments on commit 672550f

Please sign in to comment.