Subrequests again

Yichun Zhang (agentzh) agentzh at
Wed Jul 17 23:28:43 UTC 2013


On Wed, Jul 17, 2013 at 2:56 PM, Marat Dakota wrote:
> It looks like when a subrequest is completed with NGX_ERROR result (post
> subrequest callback is called with NGX_ERROR status) and I try
> ngx_http_output_filter for my main request after that,
> ngx_http_output_filter returns NGX_ERROR too.
> I need to be able to continue sending my main request body normally.
> How to achieve that?

Easy. Just do not return NGX_ERROR in your post_subrequest handler
when the error is not fatal enough to abort the main request.
Otherwise, ngx_http_finalize_request will call


More information about the nginx-devel mailing list