atom feed5 messages in ru.sysoev.nginxRe: questions about proxy buffers
FromSent OnAttachments
Xavier NoriaJun 10, 2011 4:50 pm 
Alexandr GomoliakoJun 10, 2011 5:34 pm 
Maxim DouninJun 10, 2011 7:08 pm 
Xavier NoriaJun 12, 2011 11:28 am 
Maxim DouninJun 13, 2011 2:56 pm 
Subject:Re: questions about proxy buffers
From:Alexandr Gomoliako (zz@zzz.org.ua)
Date:Jun 10, 2011 5:34:57 pm
List:ru.sysoev.nginx

On 6/11/11, Xavier Noria <fx@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.