OpenResty 1.9.3.2 正式版发布
jopen 9年前
这次发布的亮点,一是 Win32 的支持,一是 _by_lua_block {} 指令。下一个正式版应该会有更多新特性。
_by_lua_block {} </code>directives for all the existing
*_by_lua
directives so that we no longer have to escape special characters while inlining Lua source inside the nginx.conf
file. </li>
lua51.dll
). ngx_http_v2
module since nginx 1.9.5. thanks itpp16 for the patches. ngx_http_lua_find_zone()
. thanks qlee001 for the report. ./configure
's --with-cc-opt
and --with-ld-opt
might override the LUAJIT_INC
/LUAJIT_LIB
and LUA_INC
/LUA_LIB
environment settings. thanks Julian Gonggrijp for the report. Upgrade
via ngx.req.set_header and etc might not take effect with some builtin nginx modules. Depth
, Destination
, Overwrite
, and Date
via ngx.req.set_header() and etc might not take effect at least with ngx_http_dav_module. thanks Igor Clark for the report. -Wmaybe-uninitialized
warning when compiling with gcc -Os
. ngx_http_conf_get_module_srv_conf
to fetch its current srv_conf
construct in its merge_srv_conf
callback, then use of init_worker_by_lua might lead to segmentation faults (the same also applied to merge_loc_conf). thanks chiyouhen for the report and patch. if_unmodified_since
"shortcut" field in ngx_http_headers_in_t
was first added in nginx 0.9.2. ngx_http_headers_in_t
added since nginx 1.3.3 which may confuse other nginx modules accessing them. Content-Type
response values including "; charset=xxx" via the ngx.header API might bypass the MIME type checks in other nginx modules like ngx_gzip. thanks Andreas Fischer for the report. - feature:
upstream.get_servers(server_name)
now returns the server name (if any) as well, which can be the domain name if the user puts it innginx.conf
. thanks Hung Nguyen for the request. </ul> </li> - upgraded HeadersMoreNginxModule to 0.28.
- bugfix: fixed errors and warnings with C compilers without variadic macro support.
- bugfix: setting (builtin) request headers
Upgrade
,Depth
,Destination
,Overwrite
, andDate
might not take effect in standard nginx modules like ngx_http_proxy and ngx_http_dav. - bugfix: when the response header
Content-Type
contains parameters like "; charset=utf-8", the-t MIME-List
options did not work as expected at all. thanks Joseph Bartels for the report. - bugfix: clearing input headers
If-Unmodified-Since
,If-Match
, andIf-None-Match
did not clear the builtin "shortcut" fields inngx_http_headers_in_t
which might confuse other nginx modules likengx_http_not_modified_filter_module
. The first header gets "shortcuts" fields since nginx 0.9.2 while the latter two since nginx 1.3.3. </ul> </li> - upgraded IconvNginxModule to 0.13.
- bugfix: HTTP 0.9 requests would turn
iconv_filter
into a bad unrecoverable state leading to "iconv body filter skiped" error upon every subsequent request. thanks numberlife for the report. also introduced some coding style fixes. - bugfix: lowered the error log level for HTTP 0.9 requests from "error" to "warn" to prevent malicious clients from flooding the error logs. </ul> </li>
- upgraded LuaRestyRedisLibrary to 0.21.
- bugfix: the "attempt to call local new_tab (a table value)" error might happen when LuaJIT 2.0 was used and a local Lua module named "table.new" was visible. thanks Michael Pirogov for the report.
- doc: fixed code examples to check redis pipelined requests' return values more strictly. some commands (like hkeys and smembers) may return empty tables, which may result in
nil res[1]
values. thanks Dejiang Zhu for the patch. </ul> </li> - upgraded LuaRestyCoreLibrary to 0.1.2.
- change: updated the implementation to reflect recent changes in shared dictionary zones of LuaNginxModule. now we require LuaNginxModule 0.9.17+. </ul> </li>
- upgraded LuaCjsonLibrary to 2.1.0.3.
- feature: now we allow up to 16 decimal places in JSON number encoding via
cjson.encode_number_precision()
. thanks lordnynex for the patch. - bugfix: fixed the warning "inline function ‘fpconv_init’ declared but never defined" from gcc.
- bugfix: Makefile: removed the slash (
/
) after$(DESTDIR)
so as to support relative path values in make variableLUA_LIB_DIR
. </ul> </li> - upgraded RestyCLI to 0.04.
- feature: now the
resty
command-line utility looks for an nginx under the directory of itself as well (for Win32 OpenResty). - bugfix: worked around a bug regarding temp directory cleanup in msys perl 5.8.8 (and possibly other versions of msys perl as well).
- bugfix: ensure we append an appropriate executable file extension when testing the existence of executables on exotic systems like Win32. </ul> </li>
- upgraded LuaRdsParserLibrary to 0.06.
- bugfix: fixed the
u_char
C data type for MinGW gcc which lacks it. - bugfix: Makefile: added an explicit
.c -> .o
rule to help MinGW make. - bugfix: Makefile: removed the slash (
/
) after$(DESTDIR)
so as to support relative path values in make variableLUA_LIB_DIR
. </ul> </li> - upgraded LuaRedisParserLibrary to 0.12.
- bugfix: Makefile: added an explicit
.c -> .o
rule to help MinGW make. - bugfix: Makefile: removed the slash (
/
) after$(DESTDIR)
so as to support relative path values in make variableLUA_LIB_DIR
. </ul> </li> - upgraded RdsCsvNginxModule to 0.07.
- bugfix: fixed compilation errors with MinGW gcc on Win32.
- bugfix: fixed errors and warnings with C compilers without variadic macro support. </ul> </li>
- upgraded LuaJIT to v2.1-20151028: https://github.com/openresty/luajit2/tags
- imported Mike Pall's latest changes:
- limit number of arguments given to
io.lines()
andfp:lines()
. - ARM64: fix
__call
metamethod handling for tail calls. - FFI: Do not propagate qualifiers into subtypes of complex.
- feature: parse binary number literals (
0bxxx
). - fix NYICF error message.
- properly handle OOM in
trace_save()
. - ARM64: add support for saving bytecode as object files.
- ARM64: fix ELF bytecode saving.
- feature: parse Unicode string escape
\u{XX...}
. - FFI: add
ssize_t
declaration. - fix unsinking check.
- feature: add
collectgarbage("isrunning")
. - flush symbol tables in
jit.dump
on trace flush. </ul> </li> </ul> </li> </ul> 来自:https://openresty.org/#ChangeLog1009003
- limit number of arguments given to
- imported Mike Pall's latest changes:
- bugfix: Makefile: added an explicit
- bugfix: fixed the
- feature: now the
- feature: now we allow up to 16 decimal places in JSON number encoding via
- bugfix: HTTP 0.9 requests would turn