mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
Compare commits
22 Commits
Author | SHA1 | Date | |
---|---|---|---|
21f8910725 | |||
1b11b4840f | |||
668c00fdb8 | |||
3f8ad8af58 | |||
eecc5010eb | |||
2ee1f58571 | |||
4145db0b35 | |||
88c1439437 | |||
e8990b7d03 | |||
41d48ab573 | |||
ba7a3d6c44 | |||
8c5f23d79a | |||
a3cd675f1e | |||
a56bd55dac | |||
7c0c2cb944 | |||
9b1da949a3 | |||
b76f452233 | |||
94f1718e8d | |||
8294e9b37a | |||
558cbf12fc | |||
8439b517f3 | |||
2762f39fc4 |
10
patches/nginx-1.0.15-filter_finalize_hang.patch
Normal file
10
patches/nginx-1.0.15-filter_finalize_hang.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- nginx-1.0.15/src/http/ngx_http_request.c 2012-03-05 20:49:32.000000000 +0800
|
||||||
|
+++ nginx-1.0.15-patched/src/http/ngx_http_request.c 2012-05-11 20:50:01.478111234 +0800
|
||||||
|
@@ -1900,6 +1900,7 @@
|
||||||
|
|
||||||
|
if (rc == NGX_OK && r->filter_finalize) {
|
||||||
|
c->error = 1;
|
||||||
|
+ ngx_http_finalize_connection(r);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
|||||||
|
--- nginx-1.0.15/src/http/ngx_http_core_module.c 2012-03-05 21:03:39.000000000 +0800
|
||||||
|
+++ nginx-1.0.15-patched/src/http/ngx_http_core_module.c 2012-05-02 21:57:40.624937882 +0800
|
||||||
|
@@ -2567,6 +2567,8 @@
|
||||||
|
|
||||||
|
r->phase_handler = cmcf->phase_engine.location_rewrite_index;
|
||||||
|
|
||||||
|
+ r->write_event_handler = ngx_http_core_run_phases;
|
||||||
|
+
|
||||||
|
ngx_http_core_run_phases(r);
|
||||||
|
|
||||||
|
return NGX_DONE;
|
1347
t/sanity.t
1347
t/sanity.t
File diff suppressed because it is too large
Load Diff
23
util/configure
vendored
23
util/configure
vendored
@ -71,6 +71,7 @@ my @modules = (
|
|||||||
[http_array_var => 'array-var-nginx-module'],
|
[http_array_var => 'array-var-nginx-module'],
|
||||||
[http_memc => 'memc-nginx-module'],
|
[http_memc => 'memc-nginx-module'],
|
||||||
[http_redis2 => 'redis2-nginx-module'],
|
[http_redis2 => 'redis2-nginx-module'],
|
||||||
|
[http_redis => 'redis-nginx-module'],
|
||||||
[http_upstream_keepalive => 'upstream-keepalive-nginx-module'],
|
[http_upstream_keepalive => 'upstream-keepalive-nginx-module'],
|
||||||
[http_auth_request => 'auth-request-nginx-module'],
|
[http_auth_request => 'auth-request-nginx-module'],
|
||||||
[http_rds_json => 'rds-json-nginx-module'],
|
[http_rds_json => 'rds-json-nginx-module'],
|
||||||
@ -113,6 +114,7 @@ my $dry_run;
|
|||||||
my @ngx_rpaths;
|
my @ngx_rpaths;
|
||||||
my $cc;
|
my $cc;
|
||||||
my $cores;
|
my $cores;
|
||||||
|
my $luajit_xcflags = '';
|
||||||
|
|
||||||
my (@ngx_opts, @ngx_cc_opts, @ngx_ld_opts);
|
my (@ngx_opts, @ngx_cc_opts, @ngx_ld_opts);
|
||||||
|
|
||||||
@ -201,6 +203,9 @@ for my $opt (@ARGV) {
|
|||||||
} elsif ($opt =~ /^--with-luajit=(.*)/) {
|
} elsif ($opt =~ /^--with-luajit=(.*)/) {
|
||||||
$resty_opts{luajit_path} = $1;
|
$resty_opts{luajit_path} = $1;
|
||||||
|
|
||||||
|
} elsif ($opt =~ /^--with-luajit-xcflags=(.*)/) {
|
||||||
|
$luajit_xcflags .= " $1";
|
||||||
|
|
||||||
} elsif ($opt =~ /^--with-libdrizzle=(.*)/) {
|
} elsif ($opt =~ /^--with-libdrizzle=(.*)/) {
|
||||||
$resty_opts{libdrizzle} = $1;
|
$resty_opts{libdrizzle} = $1;
|
||||||
|
|
||||||
@ -510,13 +515,20 @@ _END_
|
|||||||
my $extra_opts = ' TARGET_STRIP=@:';
|
my $extra_opts = ' TARGET_STRIP=@:';
|
||||||
|
|
||||||
if ($opts->{debug}) {
|
if ($opts->{debug}) {
|
||||||
$extra_opts = q{ CCDEBUG=-g Q= XCFLAGS='-DLUA_USE_APICHECK}
|
$luajit_xcflags .= " -DLUA_USE_APICHECK -DLUA_USE_ASSERT";
|
||||||
.q{ -DLUA_USE_ASSERT'};
|
$luajit_xcflags =~ s/^ +//;
|
||||||
|
$extra_opts .= qq{ CCDEBUG=-g Q= XCFLAGS='$luajit_xcflags'};
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if ($luajit_xcflags) {
|
||||||
|
$luajit_xcflags =~ s/^ +//;
|
||||||
|
$extra_opts .= qq{ XCFLAGS='$luajit_xcflags'};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($platform =~ /bsd/i) {
|
#if ($platform =~ /bsd/i) {
|
||||||
$extra_opts .= ' CFLAGS=-I..';
|
#$extra_opts .= ' CFLAGS=-I..';
|
||||||
}
|
#}
|
||||||
|
|
||||||
if ($on_solaris) {
|
if ($on_solaris) {
|
||||||
$extra_opts .= " INSTALL_X='$root_dir/build/install -m 0755' " .
|
$extra_opts .= " INSTALL_X='$root_dir/build/install -m 0755' " .
|
||||||
@ -887,6 +899,7 @@ _EOC_
|
|||||||
--with-lua51=PATH specify the external installation of Lua 5.1 by PATH
|
--with-lua51=PATH specify the external installation of Lua 5.1 by PATH
|
||||||
--with-luajit enable and build LuaJIT 2.0
|
--with-luajit enable and build LuaJIT 2.0
|
||||||
--with-luajit=PATH use the external LuaJIT 2.0 installation specified by PATH
|
--with-luajit=PATH use the external LuaJIT 2.0 installation specified by PATH
|
||||||
|
--with-luajit-xcflags=FLAGS Specify extra C compiler flags for LuaJIT 2.0
|
||||||
--with-libdrizzle=DIR specify the libdrizzle 1.0 (or drizzle) installation prefix
|
--with-libdrizzle=DIR specify the libdrizzle 1.0 (or drizzle) installation prefix
|
||||||
--with-libpq=DIR specify the libpq (or postgresql) installation prefix
|
--with-libpq=DIR specify the libpq (or postgresql) installation prefix
|
||||||
--with-pg_config=PATH specify the path of the pg_config utility
|
--with-pg_config=PATH specify the path of the pg_config utility
|
||||||
|
@ -37,7 +37,7 @@ for my $t_file (@t_files) {
|
|||||||
my $changed;
|
my $changed;
|
||||||
while (<$in>) {
|
while (<$in>) {
|
||||||
for my $dir (@dirs) {
|
for my $dir (@dirs) {
|
||||||
(my $pat = $dir) =~ s/\d.*//;
|
(my $pat = $dir) =~ s/-(\d+\..*)/-/;
|
||||||
my $orig = $_;
|
my $orig = $_;
|
||||||
if (s{\.\./$pat\S+}{../$dir}g && $orig ne $_) {
|
if (s{\.\./$pat\S+}{../$dir}g && $orig ne $_) {
|
||||||
$changed++;
|
$changed++;
|
||||||
|
@ -60,6 +60,12 @@ patch -p1 < $root/patches/nginx-$main_ver-allow_request_body_updating.patch || e
|
|||||||
|
|
||||||
patch -p1 < $root/patches/nginx-$main_ver-log_escape_non_ascii.patch || exit 1
|
patch -p1 < $root/patches/nginx-$main_ver-log_escape_non_ascii.patch || exit 1
|
||||||
|
|
||||||
|
echo applying reset_wev_handler_in_named_locations.patch ...
|
||||||
|
patch -p1 < $root/patches/nginx-$main_ver-reset_wev_handler_in_named_locations.patch || exit 1
|
||||||
|
|
||||||
|
echo applying filter_finalize_hang.patch ...
|
||||||
|
patch -p1 < $root/patches/nginx-$main_ver-filter_finalize_hang.patch || exit 1
|
||||||
|
|
||||||
#echo "INFO: applying null-character-fixes patch"
|
#echo "INFO: applying null-character-fixes patch"
|
||||||
#patch -p0 < $root/patches/nginx-$main_ver-null_character_fixes.patch || exit 1
|
#patch -p0 < $root/patches/nginx-$main_ver-null_character_fixes.patch || exit 1
|
||||||
|
|
||||||
@ -91,7 +97,7 @@ $root/util/get-tarball "http://github.com/simpl/ngx_devel_kit/tarball/v$ver" -O
|
|||||||
tar -xzf ngx_devel_kit-$ver.tar.gz || exit 1
|
tar -xzf ngx_devel_kit-$ver.tar.gz || exit 1
|
||||||
mv simpl-ngx_devel_kit-* ngx_devel_kit-$ver || exit 1
|
mv simpl-ngx_devel_kit-* ngx_devel_kit-$ver || exit 1
|
||||||
|
|
||||||
ver=0.22rc7
|
ver=0.22rc8
|
||||||
$root/util/get-tarball "http://github.com/agentzh/set-misc-nginx-module/tarball/v$ver" -O set-misc-nginx-module-$ver.tar.gz || exit 1
|
$root/util/get-tarball "http://github.com/agentzh/set-misc-nginx-module/tarball/v$ver" -O set-misc-nginx-module-$ver.tar.gz || exit 1
|
||||||
tar -xzf set-misc-nginx-module-$ver.tar.gz || exit 1
|
tar -xzf set-misc-nginx-module-$ver.tar.gz || exit 1
|
||||||
mv agentzh-set-misc-nginx-module-* set-misc-nginx-module-$ver || exit 1
|
mv agentzh-set-misc-nginx-module-* set-misc-nginx-module-$ver || exit 1
|
||||||
@ -101,7 +107,7 @@ $root/util/get-tarball "http://github.com/agentzh/rds-json-nginx-module/tarball/
|
|||||||
tar -xzf rds-json-nginx-module-$ver.tar.gz || exit 1
|
tar -xzf rds-json-nginx-module-$ver.tar.gz || exit 1
|
||||||
mv agentzh-rds-json-nginx-module-* rds-json-nginx-module-$ver || exit 1
|
mv agentzh-rds-json-nginx-module-* rds-json-nginx-module-$ver || exit 1
|
||||||
|
|
||||||
ver=0.05rc1
|
ver=0.05rc2
|
||||||
$root/util/get-tarball "http://github.com/agentzh/rds-csv-nginx-module/tarball/v$ver" -O rds-csv-nginx-module-$ver.tar.gz || exit 1
|
$root/util/get-tarball "http://github.com/agentzh/rds-csv-nginx-module/tarball/v$ver" -O rds-csv-nginx-module-$ver.tar.gz || exit 1
|
||||||
tar -xzf rds-csv-nginx-module-$ver.tar.gz || exit 1
|
tar -xzf rds-csv-nginx-module-$ver.tar.gz || exit 1
|
||||||
mv agentzh-rds-csv-nginx-module-* rds-csv-nginx-module-$ver || exit 1
|
mv agentzh-rds-csv-nginx-module-* rds-csv-nginx-module-$ver || exit 1
|
||||||
@ -120,7 +126,7 @@ mv chaoslawful-drizzle-nginx-module-* drizzle-nginx-module-$ver || exit 1
|
|||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=0.5.0rc25
|
ver=0.5.0rc28
|
||||||
$root/util/get-tarball "http://github.com/chaoslawful/lua-nginx-module/tarball/v$ver" -O lua-nginx-module-$ver.tar.gz || exit 1
|
$root/util/get-tarball "http://github.com/chaoslawful/lua-nginx-module/tarball/v$ver" -O lua-nginx-module-$ver.tar.gz || exit 1
|
||||||
tar -xzf lua-nginx-module-$ver.tar.gz || exit 1
|
tar -xzf lua-nginx-module-$ver.tar.gz || exit 1
|
||||||
mv chaoslawful-lua-nginx-module-* ngx_lua-$ver || exit 1
|
mv chaoslawful-lua-nginx-module-* ngx_lua-$ver || exit 1
|
||||||
@ -141,7 +147,7 @@ mv agentzh-memc-nginx-module-* memc-nginx-module-$ver || exit 1
|
|||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=0.13rc6
|
ver=0.13rc8
|
||||||
$root/util/get-tarball "http://github.com/agentzh/srcache-nginx-module/tarball/v$ver" -O srcache-nginx-module-$ver.tar.gz || exit 1
|
$root/util/get-tarball "http://github.com/agentzh/srcache-nginx-module/tarball/v$ver" -O srcache-nginx-module-$ver.tar.gz || exit 1
|
||||||
tar -xzf srcache-nginx-module-$ver.tar.gz || exit 1
|
tar -xzf srcache-nginx-module-$ver.tar.gz || exit 1
|
||||||
mv agentzh-srcache-nginx-module-* srcache-nginx-module-$ver || exit 1
|
mv agentzh-srcache-nginx-module-* srcache-nginx-module-$ver || exit 1
|
||||||
@ -184,6 +190,12 @@ mv ngx_http_auth_request_module-* auth-request-nginx-module-$ver || exit 1
|
|||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
|
ver=0.3.6
|
||||||
|
$root/util/get-tarball "http://people.freebsd.org/~osa/ngx_http_redis-$ver.tar.gz" -O redis-nginx-module-$ver.tar.gz || exit 1
|
||||||
|
tar -xzf redis-nginx-module-$ver.tar.gz || exit 1
|
||||||
|
mv ngx_http_redis-* redis-nginx-module-$ver || exit 1
|
||||||
|
|
||||||
|
#################################
|
||||||
ver=0.9
|
ver=0.9
|
||||||
$root/util/get-tarball "https://github.com/FRiCKLE/ngx_postgres/tarball/$ver" -O ngx_postgres-$ver.tar.gz || exit 1
|
$root/util/get-tarball "https://github.com/FRiCKLE/ngx_postgres/tarball/$ver" -O ngx_postgres-$ver.tar.gz || exit 1
|
||||||
tar -xzf ngx_postgres-$ver.tar.gz || exit 1
|
tar -xzf ngx_postgres-$ver.tar.gz || exit 1
|
||||||
@ -225,17 +237,17 @@ rm lua-makefile-fix.patch || exit 1
|
|||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=2.0.0-beta9
|
ver=2.0.0-beta10
|
||||||
$root/util/get-tarball "http://luajit.org/download/LuaJIT-$ver.tar.gz" -O "LuaJIT-$ver.tar.gz" || exit 1
|
$root/util/get-tarball "http://luajit.org/download/LuaJIT-$ver.tar.gz" -O "LuaJIT-$ver.tar.gz" || exit 1
|
||||||
tar -xzf LuaJIT-$ver.tar.gz || exit 1
|
tar -xzf LuaJIT-$ver.tar.gz || exit 1
|
||||||
|
|
||||||
cd LuaJIT-$ver || exit 1;
|
#cd LuaJIT-$ver || exit 1;
|
||||||
$root/util/get-tarball http://luajit.org/download/beta9_hotfix1.patch -O beta9_hotfix1.patch
|
#$root/util/get-tarball http://luajit.org/download/beta9_hotfix1.patch -O beta9_hotfix1.patch
|
||||||
patch -p1 < beta9_hotfix1.patch || exit 1
|
#patch -p1 < beta9_hotfix1.patch || exit 1
|
||||||
rm beta9_hotfix1.patch || exit 1
|
#rm beta9_hotfix1.patch || exit 1
|
||||||
|
|
||||||
cp $root/misc/unwind-generic.h ./unwind.h || exit 1
|
#cp $root/misc/unwind-generic.h ./unwind.h || exit 1
|
||||||
cd ..
|
#cd ..
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
@ -248,21 +260,21 @@ cd ..
|
|||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=0.09rc7
|
ver=0.09
|
||||||
$root/util/get-tarball "http://github.com/agentzh/lua-redis-parser/tarball/v$ver" -O "lua-redis-parser-$ver.tar.gz" || exit 1
|
$root/util/get-tarball "http://github.com/agentzh/lua-redis-parser/tarball/v$ver" -O "lua-redis-parser-$ver.tar.gz" || exit 1
|
||||||
tar -xzf lua-redis-parser-$ver.tar.gz || exit 1
|
tar -xzf lua-redis-parser-$ver.tar.gz || exit 1
|
||||||
mv agentzh-lua-redis-parser-* lua-redis-parser-$ver || exit 1
|
mv agentzh-lua-redis-parser-* lua-redis-parser-$ver || exit 1
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=0.04
|
ver=0.05
|
||||||
$root/util/get-tarball "http://github.com/agentzh/lua-rds-parser/tarball/v$ver" -O "lua-rds-parser-$ver.tar.gz" || exit 1
|
$root/util/get-tarball "http://github.com/agentzh/lua-rds-parser/tarball/v$ver" -O "lua-rds-parser-$ver.tar.gz" || exit 1
|
||||||
tar -xzf lua-rds-parser-$ver.tar.gz || exit 1
|
tar -xzf lua-rds-parser-$ver.tar.gz || exit 1
|
||||||
mv agentzh-lua-rds-parser-* lua-rds-parser-$ver || exit 1
|
mv agentzh-lua-rds-parser-* lua-rds-parser-$ver || exit 1
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=0.06
|
ver=0.07
|
||||||
$root/util/get-tarball "http://github.com/agentzh/lua-resty-memcached/tarball/v$ver" -O "lua-resty-memcached-$ver.tar.gz" || exit 1
|
$root/util/get-tarball "http://github.com/agentzh/lua-resty-memcached/tarball/v$ver" -O "lua-resty-memcached-$ver.tar.gz" || exit 1
|
||||||
tar -xzf lua-resty-memcached-$ver.tar.gz || exit 1
|
tar -xzf lua-resty-memcached-$ver.tar.gz || exit 1
|
||||||
mv agentzh-lua-resty-memcached-* lua-resty-memcached-$ver || exit 1
|
mv agentzh-lua-resty-memcached-* lua-resty-memcached-$ver || exit 1
|
||||||
@ -283,14 +295,14 @@ mv agentzh-lua-resty-mysql-* lua-resty-mysql-$ver || exit 1
|
|||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=0.02
|
ver=0.03
|
||||||
$root/util/get-tarball "http://github.com/agentzh/lua-resty-upload/tarball/v$ver" -O "lua-resty-upload-$ver.tar.gz" || exit 1
|
$root/util/get-tarball "http://github.com/agentzh/lua-resty-upload/tarball/v$ver" -O "lua-resty-upload-$ver.tar.gz" || exit 1
|
||||||
tar -xzf lua-resty-upload-$ver.tar.gz || exit 1
|
tar -xzf lua-resty-upload-$ver.tar.gz || exit 1
|
||||||
mv agentzh-lua-resty-upload-* lua-resty-upload-$ver || exit 1
|
mv agentzh-lua-resty-upload-* lua-resty-upload-$ver || exit 1
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=0.05
|
ver=0.06
|
||||||
$root/util/get-tarball "http://github.com/agentzh/lua-resty-string/tarball/v$ver" -O "lua-resty-string-$ver.tar.gz" || exit 1
|
$root/util/get-tarball "http://github.com/agentzh/lua-resty-string/tarball/v$ver" -O "lua-resty-string-$ver.tar.gz" || exit 1
|
||||||
tar -xzf lua-resty-string-$ver.tar.gz || exit 1
|
tar -xzf lua-resty-string-$ver.tar.gz || exit 1
|
||||||
mv agentzh-lua-resty-string-* lua-resty-string-$ver || exit 1
|
mv agentzh-lua-resty-string-* lua-resty-string-$ver || exit 1
|
||||||
|
Reference in New Issue
Block a user