<div dir="ltr"><div class="gmail_quote">On Thu, Sep 15, 2016 at 11:12 PM, hkahlouche <span dir="ltr"><<a target="_blank" href="mailto:nginx-forum@forum.nginx.org">nginx-forum@forum.nginx.org</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Can you please confirm, if no new request is sent to the upstream before the<br>
entire response is received for the ongoing request (ongoing request<br>
finished)?<br>
In other words, is possible that upstream module sends the next request to<br>
upstream server while there is still response bytes being received from<br>
upstream on a current request?<br></blockquote><div><br><div style="font-size:small;color:rgb(51,51,153);display:inline" class="gmail_default">AFAIK, 2 different requests are served separately, meaning you can have some requests sent when some other is being responded to.<br></div><div style="font-size:small;color:rgb(51,51,153);display:inline" class="gmail_default"><br></div><div style="font-size:small;color:rgb(51,51,153);display:inline" class="gmail_default">If you talk about the same request, then it is only sent to the next upstream server when there is an 'unsuccessful attempt' at communicating with the current upstream server. What defines this is told by the *_next_upstream directives of the pertinent modules (for example <a href="http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_next_upstream">proxy_next_upstream</a>).<br></div><div style="font-size:small;color:rgb(51,51,153);display:inline" class="gmail_default">That means that, by nature, there is no response coming back when the request is tried on the next server.<br clear="all"><div><div class="gmail_signature"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font></div></div></div></div></div></div>