<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 8 May 2014 06:05, rodrigo.aiello <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Nginx is receiving the bytes and then<br>
delivering. I wonder if anyone has gone through this problem and found a<br>
better solution.</blockquote><div><br></div><div>Indeed, Nginx reads the whole response from the backend before a single byte is sent to the client. That can add latency if your response is very large. This is controlled by the proxy_buffering setting, so try setting it to "no":</div>

<div><br></div><div><a href="http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffering">http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffering</a></div><div><br></div><div>Cheers,</div><div>

Nicholas Sherlock</div></div></div></div>