lua-nginx-module
lua-nginx-module copied to clipboard
feature: support socket in some block phase
I hereby granted the copyright of the changes in this pull request to the authors of this lua-nginx-module project.
Sometime we need use cosocket in init_by_lua
to get some data from remote before NGINX init.
This feature allow us use cosocket in some block phase, and we should limit its use way.
This pull request is now in conflict :(
As @agentzh said, init_by_lua
and exit_by_lua
are more meaningful for this feature, but they doesn't work now.
for the init_by_lua
we need to create fake request.
This pull request is now in conflict :(
This pull request is now in conflict :(
This pull request is now in conflict :(
This pull request is now in conflict :(
This pull request is now in conflict :(
This pull request is now in conflict :(