ngx_mruby v2.7.10
Behavior changes: read before upgrading
Section titled “Behavior changes: read before upgrading”None.
New features
Section titled “New features”None.
- An SSI page that includes, after another include, a location with an mruby body filter whose body was written with
Nginx.rputsorNginx.echo(by its content handler, or by a rewrite handler before the request went on to the content) gets its whole response. Before, the client got at most the part of the page before that include, and nginx closed the connection aftersend_timeout. nginx keeps the output of such an include until the includes before it are sent, and then calls its filters again with no new data to send it; the body filter took these calls for the start of a new body and held them back (#827) - A location with
mruby_add_handler onandmruby_cache onterminated the worker on a request to a script file under it.mruby_add_handlerbuilds a fresh mruby code from the request path on every request, so it has to be compiled on every request; the cached run skipped the compile and the code reached the handler with no compiled proc. The content handler now runs amruby_add_handlercode as not cached, so the script runs (#829) - A file-based mruby handler shared across locations with different
mruby_cachesettings — a server-level handler with no cache keyword, inherited by a location withmruby_cache onand one without — now keeps its recompiled proc valid for the location that caches it. Before, the location withoutmruby_cache onrecompiled the shared handler, and the caching location could reuse a proc that was no longer valid (GHSA-2hc3-r8g9-9f9x)
Build and test changes
Section titled “Build and test changes”test/t/cases/ssi_body_filter.rbrequests three more SSI pages oftest/conf/conf.d/91-ssi-body-filter.conf(port 18146), each of which includes a static file and then a location whose body comes fromNginx.rputsand goes through a body filter: a content handler, the same with a header filter, and a static file after a rewrite handler that writes withNginx.rputsand declines (#827)test/t/cases/add_handler_cache.rb(withtest/conf/conf.d/98-add-handler-cache.conf, port 18120, andtest/html/add_handler_cache.rb) requests a script under a location withmruby_add_handler onandmruby_cache on(#829)test/t/cases/shared_handler_cache.rb(withtest/conf/conf.d/99-shared-handler-cache.conf, port 18121, andtest/html/shared_handler_cache.rb) alternates requests to two locations that share a server-level file content handler and differ inmruby_cache(GHSA-2hc3-r8g9-9f9x)
Upgrading
Section titled “Upgrading”- No directive was added, renamed or removed. Rebuild the module with this
release the way you built 2.7.9, and replace the binary or the dynamic
module as usual.
Nginx.module_versionreturns2.7.10.
Nothing else needs to be checked before upgrading: this release has no behavior change.