Ngx_openresty devel version 1.2.1.13 released

Hi, folks!

After one week’s active development, I’m pleased to announce the new
development version of ngx_openresty, 1.2.1.13:

OpenResty® - Open source

Special thanks go to all our contributors and users for helping make
this happen :slight_smile:

Below is the complete change log for this release, as compared to the
last release, 1.2.1.11:

  • upgraded LuaNginxModule to 0.5.13.

    • feature: added new directive lua_socket_log_errors that can
      be used to disable automatic error logging for both the TCP
      and UDP cosockets. thanks Brian A. for the patch.

    • bugfix: segmentation faults might happen when 1. the nginx
      worker was shutting down (i.e., the Lua VM is closing), 2.
      ngx.re.gmatch was used, and 3. regex cache is enabled via
      the “o” regex flag. this bug had appeared in LuaNginxModule
      0.5.0rc30 (and OpenResty 1.0.15.9).

    • bugfix: segmentation faults might happen when the system is
      out of memory: there was one place where we did not check
      the pointer returned from “ngx_array_push”.

    • bugfix: we should avoid complicated Lua stack operations
      that might require memory allocaitons in the Lua “atpanic”
      handler because it would produce another exception in the
      handler leading to infinite loops.

  • upgraded EchoNginxModule to 0.41.

    • bugfix: we incorrectly returned the 500 error code in our
      nginx output body filters.

    • bugfix: segmentation faults might happen when the system is
      out of memory: we forgot to check the returned pointer from
      “ngx_calloc_buf” in our nginx output body filter.

  • upgraded LuaRestyDNSLibrary to 0.05.

    • feature: now we use 4096 as the receive buffer size instead
      of the value 512 that is suggested by RFC 1035. this could
      avoid data truncation when the DNS server supports datagram
      sizes larger than 512 bytes.

    • feature: now we pick a random nameserver from the
      nameservers list at the first time.

    • docs: fixed a mistake in the sample code and tuned it to be
      more illustrative. thanks Sandesh Kotwal for reporting.

The HTML version of the change contains some helpful hyper-links and
can be browsed here:

http://openresty.org/#ChangeLog1002001

OpenResty (aka. ngx_openresty) is a full-fledged web application
server by bundling the standard Nginx core, lots of 3rd-party Nginx
modules, as well as most of their external dependencies. See
OpenResty’s homepage for details:

http://openresty.org/

Enjoy!
-agentzh