Reorder output chain when subrequests are used
dakota at brokenpipe.ru
Fri May 3 22:28:57 UTC 2013
Ok, I need improper way then. Just some way.
The problem is that I know "bbb" only after the subrequest is made. And
subrequest's body is being completely filtered by body filter. So, in fact
I will not have "ccc", just "aaabbb", but I can't flush "bbb" out because
it waits for the subrequest to be done.
On Sat, May 4, 2013 at 2:03 AM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> On Sat, May 04, 2013 at 01:52:12AM +0400, Marat Dakota wrote:
> > Hi.
> > Let's suppose we've called ngx_http_output_filter(r, "aaa") for the main
> > request, then we've called ngx_http_subrequest() and then
> > ngx_http_output_filter(r, "bbb") for the main request.
> > Let's suppose the subrequest's handler has called
> > ngx_http_output_filter(sr, "ccc").
> > So, the result will be "aaacccbbb".
> > What is the proper way to reorder main request's output chain to get
> > "aaabbbccc" (i.e. how to move subrequest's output chain to the end of the
> > main output chain)?
> Proper way is to output "aaa", then "bbb", and then call a
> Maxim Dounin
> nginx-devel mailing list
> nginx-devel at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx-devel