Async operation in pre-access phase?
mdounin at mdounin.ru
Thu Aug 18 20:04:29 UTC 2016
On Thu, Aug 18, 2016 at 03:48:31AM -0400, leeyiw wrote:
> Hi, everyone:
> I want to develop a module that send/recv in pre-access handler
> asynchronously, and my pre-access handler will return NGX_AGAIN.
> My question is when my send/recv callback is called, how can I continue the
> request? By default it's block forever.
Try looking into limit_req module,
src/http/modules/ngx_http_limit_req_module.c, it contains a
relevant code. In general, you have call
once you've done with your async processing.
More information about the nginx