Skip to content

Commit f66bb61

Browse files
committed
Ensure resty.core FFI libraries are loaded to prevent potential deadlocks.
These are loaded by default in OpenResty 1.15.8.1+, but this will ensure this library is loaded in older versions. openresty/lua-nginx-module#1207 (comment) #43 #220
1 parent ac39039 commit f66bb61

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Used in production (but the internal APIs might still be in flux).
2323
Requirements:
2424

2525
- [OpenResty](http://openresty.org/#Download) 1.9.7.2 or higher
26+
- **Recommended:** OpenResty 1.15.8.1 or higher is recommended for best performance and stability.
2627
- Or nginx patched with [ssl_cert_cb_yield](https://github.com/openresty/openresty/blob/v1.11.2.2/patches/nginx-1.11.2-ssl_cert_cb_yield.patch) and built with [ngx_lua](https://github.com/openresty/lua-nginx-module#installation) 0.10.0 or higher
2728
- OpenSSL 1.0.2e or higher
2829
- [LuaRocks](http://openresty.org/#UsingLuaRocks)

lib/resty/auto-ssl.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
-- Ensure resty.core FFI libraries are loaded to prevent potential deadlocks in
2+
-- shdict. These are loaded by default in OpenResty 1.15.8.1+, but this will
3+
-- ensure this library is loaded in older versions.
4+
--
5+
-- https://github.com/openresty/lua-nginx-module/issues/1207#issuecomment-350742782
6+
-- https://github.com/auto-ssl/lua-resty-auto-ssl/issues/43
7+
-- https://github.com/auto-ssl/lua-resty-auto-ssl/issues/220
8+
require "resty.core"
9+
110
local _M = {}
211

312
local current_file_path = package.searchpath("resty.auto-ssl", package.path)

0 commit comments

Comments
 (0)