Skip to content

https verification doesn't work in ngx.timer invoked from init_worker #709

@oik741

Description

@oik741

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions