Make the Subrequest start same time with main request

lehuyprox nginx-forum at forum.nginx.org
Fri Jul 9 07:05:32 UTC 2021


Hi All,

I have written the Nginx module using subrequest with the main request body,
and authorization based on the result of a subrequest 
(I consulted from https://github.com/openresty/srcache-nginx-module and
http://nginx.org/en/docs/http/ngx_http_auth_request_module.html)
But the subrequest start when the body read completely, so the delay time
occurs when the request body size bigger

How can I make the request body is sent to the sub server immediately as it
is received?
Can I replace the main request body with the response of the subrequest?

Thanks,
Huy Le

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,292011,292011#msg-292011



More information about the nginx mailing list