Welcome! Log In Create A New Profile

Advanced

Re: Output body buffer chain "flattening" doesn't work unless proxy buffering is off

Maxim Dounin
June 07, 2010 06:32PM
Hello!

On Mon, Jun 07, 2010 at 10:41:57PM +0200, Srebrenko Šehić wrote:

> On Mon, Jun 7, 2010 at 9:08 AM, Maxim Dounin <mdounin@mdounin.ru> wrote:
>
> Hi,
>
> >> Makes sense. How does one mark them as sent? I didn't see any flags in
> >> ngx_buf_t that makes that obvious. I did try to play with b->last_buf
> >> (but that should be set to 1 only for the very last buffer in the
> >> response) and also b->last_in_chain, but that did not make any
> >> difference.
> >
> > b->pos = b->last;
>
> I guess that should be done after the call to
> ngx_http_next_body_filter(r, in).

It should be done on each buffer in input chain as soon as it's no
longer needed.

> I tried that, but it did not make
> any difference. It still "hangs" for payloads larger than 32KB.
>
> Any hints?

Probably you did something wrong.

Note well: there are other problems in code you posted as well
(e.g. you don't pass special buffers along filter chain). If you
actually try to make this code work as is - expect other problems
as well.

Note well 2: it's good idea to spend some time digging into nginx
source code.

Maxim Dounin

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Output body buffer chain "flattening" doesn't work unless proxy buffering is off

Srebrenko Šehić 3330 June 04, 2010 05:58PM

Re: Output body buffer chain "flattening" doesn't work unless proxy buffering is off

Srebrenko Šehić 1182 June 04, 2010 06:00PM

Re: Output body buffer chain "flattening" doesn't work unless proxy buffering is off

Maxim Dounin 1104 June 06, 2010 04:58PM

Re: Output body buffer chain "flattening" doesn't work unless proxy buffering is off

Srebrenko Šehić 1009 June 07, 2010 01:30AM

Re: Output body buffer chain "flattening" doesn't work unless proxy buffering is off

Maxim Dounin 1078 June 07, 2010 03:10AM

Re: Output body buffer chain "flattening" doesn't work unless proxy buffering is off

Srebrenko Šehić 1025 June 07, 2010 04:44PM

Re: Output body buffer chain "flattening" doesn't work unless proxy buffering is off

Srebrenko Šehić 955 June 07, 2010 05:00PM

Re: Output body buffer chain "flattening" doesn't work unless proxy buffering is off

Maxim Dounin 1423 June 07, 2010 06:32PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 298
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready