We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi there,
Is there any "legal" way to connect to redis from a worker created via the new init_worker_by_lua* directives?
init_worker_by_lua* directives
Anything I try gives me the "API disabled in the context of init_worker_by_lua*" error.
"API disabled in the context of init_worker_by_lua*"
The text was updated successfully, but these errors were encountered:
@kikito You cannot directly use cosockets in the context of init_worker_by_lua but you can use them in a timer created by init_worker_by_lua. See
init_worker_by_lua
https://github.com/chaoslawful/lua-nginx-module#ngxtimerat
The lua-resty-upstream-healthcheck library uses this trick.
Sorry, something went wrong.
No branches or pull requests
Hi there,
Is there any "legal" way to connect to redis from a worker created via the new
init_worker_by_lua* directives
?Anything I try gives me the
"API disabled in the context of init_worker_by_lua*"
error.The text was updated successfully, but these errors were encountered: