# OpenResty 1.9.7.2 released

**URL:** <https://www.ruby-forum.com/t/openresty-1-9-7-2-released/243887>\
**Category:** NGINX\
**Created:** [January 22, 2016, 6:29am UTC](https://www.ruby-forum.com/t/openresty-1-9-7-2-released/243887 "2016-01-22T06:29:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [January 22, 2016, 6:29am UTC](https://www.ruby-forum.com/t/openresty-1-9-7-2-released/243887/1 "2016-01-22T06:29:03Z")

</div>

Hi folks

I am happy to announce the new formal release, 1.9.7.2, of the  
OpenResty web platform based on NGINX and Lua:

```
https://openresty.org/#Download

```

Both the (portable) source code distribution and the Win32 binary  
distribution are provided on this Download page.

This version is an important milestone in OpenResty’s release history  
and we have the following 3 big features included in the bundle:

1. ngx\_lua’s new directives ssl\_certificate\_by\_lua\* directives that  
allow dynamic control of the downstream SSL/TLS handshake of NGINX  
with Lua. Nonblocking I/O operations on the Lua land like cosockets  
and “light threads” are also available in this context. This feature  
has been powering CloudFlare’s SSL gateway for more than a year now.  
Thanks CloudFlare for supporting this work.

See the official documentation of these features for more details:

[GitHub - openresty/lua-nginx-module: Embed the Power of Lua into NGINX HTTP servers](https://github.com/openresty/lua-nginx-module#ssl_certificate_by_lua_block)

[https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/ssl.md#readme](https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/ssl.md#readme)

[https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/ocsp.md#readme](https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/ocsp.md#readme)

1. ngx\_lua’s new ngx.semaphore API contributed by Kugou Inc., which  
allows very efficient “light thread” control flow synchronizations  
across the request and context boundaries (though still limited to a  
single NGINX worker process). This feature also plays an important  
role in their engineers’ C2000K experiment atop OpenResty.

See the corresponding documentation for more details:

[https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/semaphore.md#readme](https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/semaphore.md#readme)

1. ngx\_lua’s new balancer\_by\_lua\* directives that allow highly dynamic  
upstream peer selections and retries in pure Lua, making dynamic  
custom load balancers written in Lua possible. Such mechanism is based  
upon NGINX core’s upstream facility, which can work with existing  
nginx upstream C modules like ngx\_proxy and ngx\_fastcgi, out of the  
box. Thanks CloudFlare for supporting this work.

See the corresponding documentation for more details:

[GitHub - openresty/lua-nginx-module: Embed the Power of Lua into NGINX HTTP servers](https://github.com/openresty/lua-nginx-module#balancer_by_lua_block)

[https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/balancer.md#readme](https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/balancer.md#readme)

Special thanks go to all our contributors and users.

Changes since the last (formal) release, 1.9.7.1:

- feature: applied the ssl\_cert\_cb\_yield patch to the bundled  
version of the NGINX core to allow yielding in OpenSSL’s  
SSL\_CTX\_set\_cert\_cb() callbacks (needed by the ngx\_lua module’s  
ssl\_certificate\_by\_lua\* directives, for example).

- bugfix: the “./configure” options “–with-dtrace-probes” and  
“–with-stream” did not work together and led to compilation  
failures.

- upgraded the ngx\_lua module to 0.10.0.

- upgraded the lua-resty-core library to 0.1.4.

- upgraded LuaJIT to v2.1-20160108:  
[Tags · openresty/luajit2 · GitHub](https://github.com/openresty/luajit2/tags)

The HTML version of the change log with lots of helpful hyper-links  
can be browsed here:

```
https://openresty.org/#ChangeLog1009007

```

OpenResty (aka. ngx\_openresty) is a full-fledged web platform  
by bundling the standard Nginx core, Lua/LuaJIT, lots of  
3rd-party Nginx modules and Lua libraries, as well as most of their  
external  
dependencies. See OpenResty’s homepage for details:

```
https://openresty.org/

```

We have run extensive testing on our Amazon EC2 test cluster and  
ensured that all the components (including the Nginx core) play well  
together. The latest test report can always be found here:

```
https://qa.openresty.org

```

Enjoy!  
-agentzh
