发布于 2014-12-08 00:22:44 | 415 次阅读 | 评论: 0 | 来源: 网友投递
OpenResty WEB服务器
OpenResty (也称为 ngx_openresty)是一个全功能的 Web 应用服务器,它打包了标准的 Nginx 核心,很多的常用的第三方模块,以及它们的大多数依赖项。
OpenResty 1.7.7.1 发布,OpenResty (也称为 ngx_openresty)是一个全功能的 Web 应用服务器。它打包了标准的 Nginx 核心,很多的常用的第三方模块,以及它们的大多数依赖项。
OpenResty (也称为 ngx_openresty)是一个全功能的 Web 应用服务器,它打包了标准的 Nginx 核心,很多的常用的第三方模块,以及它们的大多数依赖项。
该版本完整改进记录包括:
upgraded the Nginx core to 1.7.7.
see the changes here: http://nginx.org/en/CHANGES
bugfix: applied a patch to the nginx core to fix the memory invalid reads when exceeding the pre-configured limits in an ngx_hash_t
hash table.
bugfix: applied a patch to the nginx core to fix a memory invalid read regression introduced in nginx 1.7.5+'s resolver.
./configure: usage text: renamed --with-luajit=PATH
to --with-luajit=DIR
. thanks Dominic for the suggestion.
feature: ./configure: added the default prefix value to the usage text.
upgraded LuaJIT to v2.1-20141128: https://github.com/openresty/luajit2/tags
feature: FFI: added ffi.typeinfo()
. thanks to Peter Colberg.
bugfix: fixed snapshot #0 handling for traces with a stack check on entry. this bug might lead to bad register overwrites (and eventually segmentation faults in GC upon trace exits, at least).
bugfix: FFI: no meta fallback when indexing pointer to incomplete struct.
bugfix: fixed fused constant loads under high register pressure.
bugfix: fixed DragonFly build (unsupported). thanks to Robin Hahling, Alex Hornung, and Joris Giovannangeli.
bugfix: FFI: fixed initialization of unions of subtypes. thanks to Peter Colberg.
bugfix: FFI: Fix for cdata vs. non-cdata arithmetic and comparisons. thanks to Roman Tsisyk.
optimize: eliminated hmask guard for forwarded HREFK.
imported Mike Pall's latest changes:
debugging: added an (expensive) assertion to check GC objects in current stack upon trace exiting. thanks Mike Pall. only enabled when building with -DLUA_USE_ASSERT
.
upgraded LuaNginxModule to 0.9.13.
optimize: reduced the pool size of a fake connection from the default pool size (16KB) to 128B, affecting init_worker_by_lua and ngx.timer.at.
optimize: made fake requests share their connection pools, affecting init_worker_by_lua and ngx.timer.at.
feature: the error logger used by ngx.timer.at handlers now outputs the "client: xxx, server: xxx" context info for the original (true) request creating the timer.
feature: added nginx configuration file names and line numbers to the rewrite/access/content/log_by_lua directives' Lua chunk names in order to simplify debugging.
feature: ngx.flush(true) now returns the "timeout" and "client aborted" errors to the Lua land for the cases that writing to the client is timed out or the client closes the connection prematurely, respectively.
feature: ngx.flush(true) can now wait on delayed events due to nginx's limit_rate config directive or $limit_rate variable settings. thanks Shafreeck Sea for the original patch.
bugfix: ngx.flush(), ngx.eof(), and some other things did not update busy/free chains after calling the output filters.
bugfix: ngx_gzip/ngx_gunzip module filters might cause ngx.flush(true) to hang until timeout for nginx 1.7.7+ (and some other old versions of nginx). thanks Maxim Dounin for the help.
bugfix: ngx.get_phase() did not work in the context of init_worker_by_lua*.
bugfix: use of ngx.flush(true) with the limit_rate config directive or the $limit_rate variable may hang the request forever for large volumn of output data. thanks Shafreeck Sea for the report.
bugfix: compilation error when PCRE is disabled in the nginx build. thanks Ivan Cekov for the report.
bugfix: when syslog was enabled in the error_log directive for nginx 1.7.1+, use of init_worker_by_lua or ngx.timer.at() would lead to segmentation faults. thanks shun.zhang for the report.
bugfix: fixed compilation error with nginx 1.7.5+ because nginx 1.7.5+ changes the API in the events subsystem. thanks Charles R. Portwood II and Mathieu Le Marec for the report.
bugfix: ngx.req.raw_header(): buffer overflow and the "buffer error" exception might happen for massively pipelined downstream requests. thanks Dane Knecht for the report.
bugfix: ngx.req.raw_header(): we might change nginx's internal buffer pointers, which might cause bad side-effects.
doc: added a new section, Cocockets Not Available Everywhere, under the Known Issues section.
upgraded LuaRestyDNSLibrary to 0.14.
feature: added support for the SPF record type specified by RFC 4408. thanks Tom Fitzhenry for the patch.
upgraded LuaRestyLrucacheLibrary to 0.03.
feature: the get() method now also returns the stale value as the second returned value if available.
upgraded LuaRestyLockLibrary to 0.04.
upgraded EchoNginxModule to 0.57.
bugfix: $echo_client_request_headers: buffer overflow and the "buffer error" exception might happen for massively pipelined downstream requests.
bugfix: $echo_client_request_headers: we might change nginx's internal buffer pointers, which might cause bad side-effects.
upgraded DrizzleNginxModule to 0.1.8.
bugfix: fixed compilation error with nginx 1.7.5+ because nginx 1.7.5+ changes the API in the events subsystem.
upgraded PostgresNginxModule to 1.0rc5.
bugfix: fixed compilation error with nginx 1.7.5+ because nginx 1.7.5+ changes the API in the events subsystem.
upgraded CoolkitNginxModule to 0.2rc2.
bugfix: compilation failed when PCRE was disabled in the nginx build.
feature: added the "$location" variable, by Piotr Sikora.
upgraded SetMiscNginxModule to 0.27.
bugfix: bugfix: fixed build failure when --with-mail_ssl_module
is specified while --with-http_ssl_module
is not. thanks Xiaochen Wang for the report.