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 06, 2010 04:58PM
Hello!

On Fri, Jun 04, 2010 at 11:56:25PM +0200, Srebrenko Šehić wrote:

> While working on an output body filter, I've noticed that if I flatten
> (join all buffers from a chain into 1 buffer), response processing
> hangs when nginx decides to start buffering the response from the
> upstream server. This usually happens (in my case) when the upstream
> response size is >64k.

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... :)).

> If I set "proxy_buffering" to "off" in my
> config, everything works just fine.

This is actually strange. With proxy_buffering off; it should
stop doing anything usefull as soon as proxy_buffer_size will be
exceeded. Well, it will call output filter again and again, with
the same buffer chain, but it doesn't seem to match words "works
just fine".

[...]

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ć 3338 June 04, 2010 05:58PM

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

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

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

Maxim Dounin 1105 June 06, 2010 04:58PM

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

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

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

Maxim Dounin 1079 June 07, 2010 03:10AM

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

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

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

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

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

Maxim Dounin 1426 June 07, 2010 06:32PM



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

Online Users

Guests: 205
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