Subrequests from body filters

Maxim Dounin mdounin at mdounin.ru
Mon Mar 25 11:56:13 UTC 2013


Hello!

On Sun, Mar 24, 2013 at 09:12:53PM +0400, Marat Dakota wrote:

[...]

>     // We just put "bbb" to main response for each call of this body filter.
>     return ngx_http_output_filter(r->main, out);
> }

It is very wrong to call ngx_http_output_filter() of a main 
request from you body filter.  Result is undefined.  Instead, you 
should call next body filter with a modified chain.

-- 
Maxim Dounin
http://nginx.org/en/donation.html



More information about the nginx-devel mailing list