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

Srebrenko Šehić ssehic at gmail.com
Tue Jun 8 00:41:57 MSD 2010

On Mon, Jun 7, 2010 at 9:08 AM, Maxim Dounin <mdounin at mdounin.ru> wrote:


>> 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). I tried that, but it did not make
any difference. It still "hangs" for payloads larger than 32KB.

Any hints?


More information about the nginx-devel mailing list