Skip to content

update nginx #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 136 commits into from
Aug 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
7ecba53
travis-ci: use openssl 1.0.2i.
agentzh Sep 24, 2016
3bd4227
made a resolver test case more tolerante.
agentzh Oct 3, 2016
da08f59
optimize: optimized the shdict node struct memory layout which can sa…
agentzh Oct 3, 2016
d26ca90
fixed a hard-coded IP address in a test case.
agentzh Oct 5, 2016
5c491a5
travis-ci: add nginx-1.11.2 (supported by openresty)
chipitsine Oct 3, 2016
f7a0d58
travis-ci: upgraded openssl to 1.0.2j
chipitsine Oct 3, 2016
74bad01
travis-ci: cache openssl-1.0.2h-sess_set_get_cb_yield.patch
chipitsine Oct 3, 2016
91fc078
doc: use *_by_lua_block {} in the examples.
Oct 7, 2016
1173cc7
feature: added new config directive "lua_malloc_trim N" to periodical…
agentzh Oct 2, 2016
6640587
bumped the API version to 0.10.7; also documented that lua_malloc_tri…
agentzh Oct 23, 2016
28df10b
feature: added a new api function tcpsock:settimeouts(connect_timeout…
doujiang24 Aug 25, 2016
40b61f4
doc: fixed the version number since which settimeouts() was first int…
agentzh Oct 27, 2016
73bd64d
feature: added public C API for 3rd-party NGINX C modules to register…
helloyi Sep 5, 2015
6b2c9a3
tests: updated the IP address of our own test server.
agentzh Oct 30, 2016
521d802
tests: updated a shdict test case for i386 to reflect our recent opti…
agentzh Oct 30, 2016
cf0623c
tests: 147-tcp-socket-timeouts.t was failing in mockeagain read/write…
doujiang24 Oct 31, 2016
37e5362
change: ssl_session_fetch_by_lua* and ssl_session_store_by_lua* are n…
doujiang24 Oct 10, 2016
397f366
bugfix: ngx.req.set_header: skips setting multi-value headers for bad…
Aug 22, 2016
5134a9c
bugfix: segmentation faults might happen when ngx.exec() was fed with…
jayce Nov 2, 2016
ea92f7e
doc: documented the support of 307 status argument value in ngx.redir…
agentzh Nov 2, 2016
7bd6890
doc: log level constants are also available in init_by_lua* and init_…
detailyang Nov 2, 2016
3cbe5be
tests: skipped the newly added test case that cannot run in check lea…
agentzh Nov 3, 2016
0064324
doc: bumped version to 0.10.7.
agentzh Nov 4, 2016
75b0394
doc: added a note about the LRU regex cache used in the ngx.re.* impl…
agentzh Nov 13, 2016
ce525fb
tests: made tests less likely to fail due to bad network.
agentzh Nov 14, 2016
0a1de31
bugfix: C API: ngx_http_lua_add_package_preload() might not take effe…
rainingmaster Nov 14, 2016
3b42b8b
tests: avoided solving IPv6 addresses.
agentzh Nov 14, 2016
0a83639
tests: avoided solving IPv6 addresses in more tests.
agentzh Nov 15, 2016
38dfb17
tests: fixed a bug in the example ngx_fake_delayed module. thanks Dej…
agentzh Nov 15, 2016
a24db2c
tests: ngx_http_fake_module: removed the coyyright notice since the c…
agentzh Nov 15, 2016
4bc9042
tests: fixed a perl warning "Unescaped left brace in regex is depreca…
agentzh Nov 15, 2016
5e59e8c
bugfix: compilation failures with nginx cores older than 1.9.0.
Nov 16, 2016
793531d
doc: removed ngx.re.split() from TODO section since it is already imp…
thibaultcha Nov 19, 2016
aa43ca0
doc: stripped line trailing whitespaces.
alubbe Nov 14, 2016
db28ece
doc: a typo fix from Andrei Belov.
agentzh Dec 1, 2016
7c95034
tests: added a passing test for ngx.re.find + \G regexes.
agentzh Dec 13, 2016
26be99d
tests: t/090-log-socket-errors.t: avoided connecting to 8.8.8.8:80.
agentzh Dec 14, 2016
9ed76a7
travis-ci: several improvements.
chipitsine Dec 14, 2016
6e38c11
tests: disable IPv6 in resolver.
agentzh Dec 14, 2016
e703112
feature: added support for the 303 status code in ngx.redirect().
tmthrgd Aug 25, 2016
3cf7062
travis-ci: cosmetic "wget" improvement.
chipitsine Dec 17, 2016
5028d63
doc: updated copyright notice.
agentzh Dec 18, 2016
da11870
bugfix: balancer_by_lua*: the number of retres might exceed the limit…
Nov 14, 2016
b3c872e
added a passing test for #853.
agentzh Dec 27, 2016
5fdbb56
bugfix: setting response headers would change the Content-Type respon…
moonming Dec 21, 2016
3978310
feature: tcpsock:connect(): allows the options_table argument being nil.
doujiang24 Sep 3, 2016
1ada6d0
tests: require PCRE 8.39 instead of 8.33 to run our test suite.
alubbe Jan 10, 2017
5c54198
bugfix: tcp cosockets: sslhandshake(): typo in the error message.
detailyang Jan 14, 2017
0c37062
fixed a coding style issue in the previous commit.
agentzh Jan 18, 2017
1028333
travis-ci: added checks for use of tabs and source lines exceeding 80…
agentzh Jan 18, 2017
5ae4aba
travis-ci: upgraded openssl to 1.0.2k.
thibaultcha Jan 26, 2017
827a5d6
feature: fixed build compatibility with BoringSSL.
tmthrgd Jan 27, 2017
e958cb2
tests: fixed a bug in testing the nullness of cdata pointers.
detailyang Feb 2, 2017
4fb510f
fixed a function parameter name.
rainingmaster Feb 6, 2017
e73cd4b
tweak: guarded SSL related function declarations with the macro NGX_H…
detailyang Feb 10, 2017
a14b9cd
doc: various wording tweaks and more code examples.
Feb 11, 2017
7f9387c
doc: fixed a typo.
noname007 Feb 15, 2017
32fea9e
util/reindex: trims the extra newline characters at the end of the te…
membphis Feb 16, 2017
772e6fd
tests: removed superfluous empty lines at the end of the test files.
membphis Feb 16, 2017
2e7031f
util/reindex: fixed the author and copyright notice.
agentzh Feb 16, 2017
3217a07
util/reindex: fixed the shebang line.
agentzh Feb 16, 2017
11495c2
util/reindex: tweaked the regex to avoid useless substitutions. this …
agentzh Feb 16, 2017
e86dd96
doc: added more hints as comments to installation commands.
SmirnovW Feb 16, 2017
fdbfdae
semaphore: fixed a typo in a code comment.
spacewander Feb 24, 2017
2fd7daa
bugfix: typo fix in C POST args handler debug log.
p0pr0ck5 Feb 16, 2017
38dd154
doc: ngx.exit() also returns immediately in the balancer_by_lua* cont…
agentzh Mar 12, 2017
8a6448a
travis-ci: upgraded pcre to 8.40.
agentzh Mar 20, 2017
312bf3e
tests: avoided flooding google dns servers in the check leak test mode.
agentzh Mar 25, 2017
743a10a
travis-ci: avoided installing the Test::Nginx perl module; just use i…
agentzh Mar 25, 2017
6b01840
change: disabled the mmap(sbrk(0)) memory trick since glibc leaks mem…
agentzh Mar 30, 2017
113d138
bugfix: lacking the fix from #936 in the C API for lua-resty-core. #1031
moonming Apr 5, 2017
844e842
change: removed the use of luaL_getn() macro as it is no longer avail…
dndx Apr 4, 2017
94248d6
tests: added valgrind suppression rules for false positives in nginx …
agentzh Apr 6, 2017
2ba183d
tests: made a test for duplex cosockets less sensitive to timing error.
agentzh Apr 7, 2017
385ae4c
tests: a followup fix for the previous commit (2ba183d3).
agentzh Apr 8, 2017
975c3f8
bumped version to 0.10.8.
agentzh Apr 8, 2017
4b72493
tests: added passing test cases for testing Lua errors thrown in init…
doujiang24 Mar 2, 2017
0459a28
feature: nginx 1.11.11+ can now build with this module.
defanator Mar 22, 2017
e39e442
bugfix: fixed typos in error messages.
spacewander Apr 15, 2017
55f91d7
doc: updated the Installation section to reflect recent changes.
agentzh Apr 20, 2017
398db95
doc: more fixes in the Installation section for OpenResty.
agentzh Apr 20, 2017
c7d9691
doc: more tweaks in the Installation section.
agentzh Apr 20, 2017
6c7ac36
doc: more tweaks in the Installation section.
agentzh Apr 20, 2017
39bec7f
doc: minor tweaks.
agentzh Apr 20, 2017
ca8ed0e
doc: minor tweaks.
agentzh Apr 20, 2017
c034626
change: removed util/reindex. put it into the openresty/openresty-dev…
agentzh Apr 28, 2017
f5633ca
feature: added pure C API for tuning the jit_stack_size option in PCRE.
alubbe May 31, 2016
b98da9a
feature: added pure C functions ngx_http_lua_ffi_worker_type() & ngx_…
membphis Apr 16, 2017
23cb8e8
travis-ci: enable -msse4.2 when building luajit2.
agentzh May 6, 2017
edbded4
change: bumped API version to 0.10.9.
agentzh May 7, 2017
6a2b4ff
doc: a typo fix from Oleg Abrosimov.
agentzh May 7, 2017
1a5a33e
feature: added new config directive lua_intercept_error_log for captu…
membphis Apr 6, 2017
8d8f2c2
doc: documented the lua_intercept_error_log directive.
agentzh May 13, 2017
4ed1f96
doc: added more material on capturing error log filtering.
agentzh May 13, 2017
ab63ba8
change: renamed lua_intercept_error_log directive to lua_capture_erro…
agentzh May 13, 2017
eb0bb28
lua_capture_error_log: various documentation fixes and API name changes.
agentzh May 14, 2017
76e2138
change: renamed the C API function ngx_http_lua_ffi_errlog_get_logs t…
agentzh May 14, 2017
2a87704
feature: added new pure C API ngx_http_lua_ffi_process_signal_gracefu…
agentzh May 14, 2017
9b16e25
feature: implemented the ngx.timer.every() API function for creating …
doujiang24 Sep 1, 2016
2dd4462
feature: ngx.sleep(0) now always yield the control to the nginx event…
dndx Apr 24, 2017
c1317e4
travis-ci: we no longer want to cover nginx 1.9.15.
agentzh May 15, 2017
0c29793
doc: made it explicit that shdict methods are all atomic.
agentzh May 18, 2017
993aec8
refactor: removed the obsolete util/gdbinit script script. we have mu…
agentzh May 22, 2017
e80d292
tests: ssl: avoided those domains using startcom ssl certificates.
agentzh May 24, 2017
7a87984
feature: added pure C API function +ngx_http_lua_ffi_errlog_get_sys_f…
spacewander May 31, 2017
69d9955
bugfix: the running timer counter might go out of sync when non-timer…
guanglinlv Jun 4, 2017
2360565
doc: fixed some typos detected by misspell.
spacewander Jun 14, 2017
6f49242
fixed tests to reflect recent changes.
agentzh Jun 20, 2017
9cb9709
tests: updated tests on ssl cosockets to reflect recent changes in ou…
agentzh Jun 26, 2017
031e000
doc: use the .ljbc file extension instead of .luac for LuaJIT bytecod…
agentzh Jun 26, 2017
df70821
feature: errlog capture: now we also record the UNIX timestamp (in se…
membphis Jun 26, 2017
20d6558
feature: balancer_by_lua*: now the user Lua code can terminate the cu…
dndx Jun 24, 2017
66f0731
bugfix: fixed several bugs in ngx_http_lua_log_ringbuf.c.
pracj3am Jun 27, 2017
3294b1d
bugfix: ngx.encode_args() did not escape "|", ",", "$", "@", and "`".
goecho Aug 5, 2015
bb30f6d
bugfix: ngx.escape_uri() did not escape "|", ",", "$", "@", and "`".
agentzh Jul 4, 2017
8827a7f
bugfix: segmentation fault would occur when several server {} blocks …
agentzh Jul 4, 2017
4527ec0
tests: relaxed the expected ouptut constraint in tests for testing ss…
agentzh Jul 4, 2017
81b8e48
tests: made a test less possible to fail due to timing error.
agentzh Jul 4, 2017
e84d69b
tests: made a slow test less possible to time out on slow machines.
agentzh Jul 4, 2017
67664fe
minor coding style fixes.
agentzh Jul 4, 2017
c372e1c
optimize: made ngx_http_lua_log_ringbuf_header_t have the same size o…
agentzh Jul 4, 2017
720bd5d
bugfix: the fake requests/connections might leak when memory allocati…
skyever Jun 29, 2017
ef4a0b1
tests: skipped the test case for lua_code_cache off + ngx.timer.every…
agentzh Jul 6, 2017
cc0a793
ocsp: removed a useless line of code, which unbreak the libressl buil…
agentzh Jul 10, 2017
a509476
bugfix: ngx.semaphore: when nginx workers exit, the harmless error me…
membphis Jul 10, 2017
1e71ff2
tests: fixed the vim mode line in a test file.
agentzh Jul 17, 2017
c268548
tests: added a test case to make sure $proxy_add_x_forwarded_for is a…
spacewander Jul 17, 2017
2fd469d
refactor: removed the duplicate C function decelaration for ngx_http_…
agentzh Jul 17, 2017
51c14a8
bugfix: segmentation fault might happen when a stale read event happe…
agentzh Jul 17, 2017
0f0af50
doc: fixed a typo in a code example for `ngx.re.match`.
moonming Jul 19, 2017
f170505
bugfix: ngx.escape_uri: we did not escape URI reserved chars. #1124
hunterli Jul 27, 2017
691370e
Revert "bugfix: ngx.escape_uri: we did not escape URI reserved chars.…
spacewander Jul 31, 2017
82b2188
tests: made 2 test cases less possible to fail on slower machines.
agentzh Aug 7, 2017
89de780
doc: bumped version to 0.10.9.
agentzh Aug 8, 2017
7b7178a
bugfix: fixed a compilation error on Windows. this regression had app…
agentzh Aug 9, 2017
cdd2ae9
bumped version to 0.10.10.
agentzh Aug 9, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 19 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ compiler:
addons:
apt:
packages:
- mysql-server
- axel
- cpanminus
- libtest-base-perl
Expand All @@ -24,7 +23,6 @@ addons:
- libgd-dev

cache:
apt: true
directories:
- download-cache

Expand All @@ -36,38 +34,40 @@ env:
- LUAJIT_LIB=$LUAJIT_PREFIX/lib
- LUAJIT_INC=$LUAJIT_PREFIX/include/luajit-2.1
- LUA_INCLUDE_DIR=$LUAJIT_INC
- PCRE_VER=8.33
- PCRE_VER=8.40
- PCRE_PREFIX=/opt/pcre
- PCRE_LIB=$PCRE_PREFIX/lib
- PCRE_INC=$PCRE_PREFIX/include
- OPENSSL_PREFIX=/opt/ssl
- OPENSSL_LIB=$OPENSSL_PREFIX/lib
- OPENSSL_INC=$OPENSSL_PREFIX/include
- OPENSSL_VER=1.0.2h
- OPENSSL_VER=1.0.2k
- LIBDRIZZLE_PREFIX=/opt/drizzle
- LIBDRIZZLE_INC=$LIBDRIZZLE_PREFIX/include/libdrizzle-1.0
- LIBDRIZZLE_LIB=$LIBDRIZZLE_PREFIX/lib
- LD_LIBRARY_PATH=$LUAJIT_LIB:$LD_LIBRARY_PATH
- DRIZZLE_VER=2011.07.21
- TEST_NGINX_SLEEP=0.006
matrix:
- NGINX_VERSION=1.9.15
# - NGINX_VERSION=1.10.0
- NGINX_VERSION=1.11.2

services:
- memcache
- redis-server
- mysql

before_install:
- '! grep -n -P ''(?<=.{80}).+'' --color `find src -name ''*.c''` `find . -name ''*.h''` || (echo "ERROR: Found C source lines exceeding 80 columns." > /dev/stderr; exit 1)'
- '! grep -n -P ''\t+'' --color `find src -name ''*.c''` `find . -name ''*.h''` || (echo "ERROR: Cannot use tabs." > /dev/stderr; exit 1)'

install:
- if [ ! -d download-cache ]; then mkdir download-cache; fi
- rm -f download-cache/drizzle7-$DRIZZLE_VER.tar.gz # alas, we may end up with corrupted drizzle tarball stuck in the download-cache/ forever.
- if [ ! -f download-cache/drizzle7-$DRIZZLE_VER.tar.gz ]; then wget -O download-cache/drizzle7-$DRIZZLE_VER.tar.gz http://openresty.org/download/drizzle7-$DRIZZLE_VER.tar.gz; fi
- if [ ! -f download-cache/pcre-$PCRE_VER.tar.gz ]; then wget -O download-cache/pcre-$PCRE_VER.tar.gz http://ftp.cs.stanford.edu/pub/exim/pcre/pcre-$PCRE_VER.tar.gz; fi
- if [ ! -f download-cache/openssl-$OPENSSL_VER.tar.gz ]; then wget -O download-cache/openssl-$OPENSSL_VER.tar.gz https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz; fi
- if [ ! -f download-cache/drizzle7-$DRIZZLE_VER.tar.gz ]; then wget -P download-cache http://openresty.org/download/drizzle7-$DRIZZLE_VER.tar.gz; fi
- if [ ! -f download-cache/pcre-$PCRE_VER.tar.gz ]; then wget -P download-cache http://ftp.cs.stanford.edu/pub/exim/pcre/pcre-$PCRE_VER.tar.gz; fi
- if [ ! -f download-cache/openssl-$OPENSSL_VER.tar.gz ]; then wget -P download-cache https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz; fi
- git clone https://github.com/openresty/test-nginx.git
- git clone https://github.com/openresty/openresty.git ../openresty
- git clone https://github.com/openresty/no-pool-nginx.git ../no-pool-nginx
- git clone https://github.com/openresty/nginx-devel-utils.git
- git clone https://github.com/openresty/openresty-devel-utils.git
- git clone https://github.com/openresty/mockeagain.git
- git clone https://github.com/openresty/lua-cjson.git
- git clone https://github.com/openresty/lua-upstream-nginx-module.git ../lua-upstream-nginx-module
Expand All @@ -82,22 +82,23 @@ install:
- git clone https://github.com/openresty/rds-json-nginx-module.git ../rds-json-nginx-module
- git clone https://github.com/openresty/srcache-nginx-module.git ../srcache-nginx-module
- git clone https://github.com/openresty/redis2-nginx-module.git ../redis2-nginx-module
- git clone https://github.com/openresty/lua-resty-core.git ../lua-resty-core
- git clone https://github.com/openresty/lua-resty-lrucache.git ../lua-resty-lrucache
- git clone -b v2.1-agentzh https://github.com/openresty/luajit2.git

before_script:
- mysql -uroot -e 'create database ngx_test; grant all on ngx_test.* to "ngx_test"@"%" identified by "ngx_test"; flush privileges;'

script:
- cd luajit2/
- make -j$JOBS CCDEBUG=-g Q= PREFIX=$LUAJIT_PREFIX CC=$CC XCFLAGS='-DLUA_USE_APICHECK -DLUA_USE_ASSERT' > build.log 2>&1 || (cat build.log && exit 1)
- make -j$JOBS CCDEBUG=-g Q= PREFIX=$LUAJIT_PREFIX CC=$CC XCFLAGS='-DLUA_USE_APICHECK -DLUA_USE_ASSERT -msse4.2' > build.log 2>&1 || (cat build.log && exit 1)
- sudo make install PREFIX=$LUAJIT_PREFIX > build.log 2>&1 || (cat build.log && exit 1)
- cd ..
- tar xzf download-cache/drizzle7-$DRIZZLE_VER.tar.gz && cd drizzle7-$DRIZZLE_VER
- ./configure --prefix=$LIBDRIZZLE_PREFIX --without-server > build.log 2>&1 || (cat build.log && exit 1)
- make libdrizzle-1.0 -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
- sudo make install-libdrizzle-1.0 > build.log 2>&1 || (cat build.log && exit 1)
- cd ../mockeagain/ && make CC=$CC -j$JOBS && cd ..
- cd test-nginx/ && sudo cpanm . && cd ..
- cd lua-cjson/ && make -j$JOBS && sudo make install && cd ..
- tar zxf download-cache/pcre-$PCRE_VER.tar.gz
- cd pcre-$PCRE_VER/
Expand All @@ -107,13 +108,13 @@ script:
- cd ..
- tar zxf download-cache/openssl-$OPENSSL_VER.tar.gz
- cd openssl-$OPENSSL_VER/
- wget https://raw.githubusercontent.com/openresty/openresty/master/patches/openssl-$OPENSSL_VER-sess_set_get_cb_yield.patch
- patch -p1 < openssl-$OPENSSL_VER-sess_set_get_cb_yield.patch
- if [ ! -f ../download-cache/openssl-1.0.2h-sess_set_get_cb_yield.patch ]; then wget -P ../download-cache https://raw.githubusercontent.com/openresty/openresty/master/patches/openssl-1.0.2h-sess_set_get_cb_yield.patch; fi
- patch -p1 < ../download-cache/openssl-1.0.2h-sess_set_get_cb_yield.patch
- ./config shared --prefix=$OPENSSL_PREFIX -DPURIFY > build.log 2>&1 || (cat build.log && exit 1)
- make -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
- sudo make PATH=$PATH install_sw > build.log 2>&1 || (cat build.log && exit 1)
- cd ..
- export PATH=$PWD/work/nginx/sbin:$PWD/nginx-devel-utils:$PATH
- export PATH=$PWD/work/nginx/sbin:$PWD/openresty-devel-utils:$PATH
- export NGX_BUILD_CC=$CC
- sh util/build.sh $NGINX_VERSION > build.log 2>&1 || (cat build.log && exit 1)
- nginx -V
Expand All @@ -123,4 +124,4 @@ script:
- export TEST_NGINX_RESOLVER=8.8.4.4
- dig +short @$TEST_NGINX_RESOLVER openresty.org || exit 0
- dig +short @$TEST_NGINX_RESOLVER agentzh.org || exit 0
- prove -r t
- prove -Itest-nginx/lib -r t
Loading