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

Maxim Dounin mdounin at mdounin.ru
Mon Jun 7 11:08:23 MSD 2010


Hello!

On Mon, Jun 07, 2010 at 07:29:21AM +0200, Srebrenko Šehić wrote:

> On Sun, Jun 6, 2010 at 10:57 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> 
> > You don't marked buffers as send, and proxy has no more free
> > buffers to use (proxy_buffers defaults to 8 x 8k == 64k on
> > amd64; looks like you didn't tested your code on 32-bit
> > platforms... :)).
> 
> 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;

Maxim Dounin



More information about the nginx-devel mailing list