OpenResty 1.7.7.1 發布,基于 Nginx 的應用服務器
OpenResty 1.7.7.1 發布,
OpenResty (也稱為 ngx_openresty)是一個全功能的 Web 應用服務器。它打包了標準的 Nginx 核心,很多的常用的第三方模塊,以及它們的大多數依賴項。
通過眾多進行良好設計的 Nginx 模塊,OpenResty 有效地把 Nginx 服務器轉變為一個強大的 Web 應用服務器,基于它開發人員可以使用 Lua 編程語言對 Nginx 核心以及現有的各種 Nginx C 模塊進行腳本編程,構建出可以處理一萬以上并發請求的極端高性能的 Web 應用。
OpenResty 致力于將你的服務器端應用完全運行于 Nginx 服務器中,充分利用 Nginx 的事件模型來進行非阻塞 I/O 通信。不僅僅是和 HTTP 客戶端間的網絡通信是非阻塞的,與MySQL、PostgreSQL、Memcached、以及 Redis 等眾多遠方后端之間的網絡通信也是非阻塞的。
因為 OpenResty 軟件包的維護者也是其中打包的許多 Nginx 模塊的作者,所以 OpenResty 可以確保所包含的所有組件可以可靠地協同工作。
該版本完整改進記錄包括:
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.
bugfix: the shared dictionary would incorrectly get unref'd for multiple times when the lock() and/or unlock() methods are called more than once. thanks Peng Wu for the report and Dejiang Zhu for the patch.
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.