Hi guys,
I've got a function that makes HTTPS request
if this function invoked from worker context - everything works
if function invoked from ngx.timer context - everything works
if function invoked by ngx.timer from init_worker_by_lua context - https verification doesn't work =)
I'm using Openresty Bundle 1.9.7.3
nginx.conf
test_https.lua
OS: reproduced on fedora 23 and centos 7.1
Bundle compiled with such opts:
./configure --prefix=/opt/openresty --with-http_gzip_static_module --with-http_image_filter_module --with-http_ssl_module --with-http_stub_status_module --with-http_v2_module --with-luajit --with-pcre-jit --with-debug
LOGS
Can someone help me and explain what i'm doing wrong?