questions about proxy buffers

Alexandr Gomoliako zzz at zzz.org.ua
Sat Jun 11 04:35:28 MSD 2011


On 6/11/11, Xavier Noria <fxn at hashref.com> wrote:
> What happens if the proxied server sends a response greater than the
> total buffer sizes, say 50k?

It depends whether or not you have proxy_buffering enabled.
With proxy_buffering nginx tries to receive an entire response as
quickly as possible. Even uses temporary file if response can't fit
into proxy_buffers.

> Does nginx frees buffers sending data,
> and then buffers another chunk from the proxied server, iterate until
> done?

And that's how nginx does it with disabled proxy_buffering.



More information about the nginx mailing list