Hello!

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 

    ngx_http_core_run_phases(r);

once you've done with your async processing.

-- 
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to