Hello!

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
ngx_http_terminate_request.

Regards,
-agentzh

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

Reply via email to