Hello!
On Fri, Nov 15, 2013 at 1:00 PM, Chris Whitten wrote:
> thanks! anyway to do it asynchronously?
>
What is your actual intention here? Because the word "asynchronously"
can mean very different things in different contexts.
In an attempt to answer your vague question:
1. The IO is always nonblocking as long as you use the API provided by ngx_lua.
2. If you want it run the subrequest asynchronously in respect to your
other Lua code in the same request handler, then you can use the
"light thread" API documented here:
https://github.com/chaoslawful/lua-nginx-module#ngxthreadspawn
BTW, I'm cc'ing the openresty-en mailing list:
https://groups.google.com/group/openresty-en
Please do not keep posting such questions privately unless your
questions contain sensitive information. Thank you for your
cooperation!
Regards,
-agentzh