<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 11, 2014 at 1:29 PM, James A. Robinson <span dir="ltr"><<a href="mailto:jim.robinson@gmail.com" target="_blank">jim.robinson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>With a packet capture I see the following sequence:</div><div><br></div><div>1. varnish sends a GET request for one URL</div>
<div>
<br></div><div>2. backend responds with 200 OK, and headers, including</div><div>a Connection:close header</div><div><br></div><div>3. varnish immediately sends a new GET request,</div><div>for a different URL</div><div>
<br>
</div><div>4. backend finishes sending the body of the first URL</div><div><br></div><div>5. the connection is closed.</div><div><br></div><div>If I understand HTTP/1.1 correctly, varnish should be reading the</div><div>
body from the 1st request to the end, and closing the socket, not</div>
<div>sending a new request on the same socket.</div><div></div></blockquote></div><br>I have another case where I can see this in the packet capture:</div><div class="gmail_extra"><br></div><div class="gmail_extra">1. varnish sends a GET request</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">2. backend responds with 200 OK, and headers, including</div><div class="gmail_extra">a Connection: close header</div><div class="gmail_extra"><br></div><div class="gmail_extra">
3. backend sends the body</div><div class="gmail_extra"><br></div><div class="gmail_extra">4. connection closes</div><div class="gmail_extra"><br></div><div class="gmail_extra">and that all sounds great, but varnishlog tells me it did</div>
<div class="gmail_extra">the same thing as my other case -- it marked the body as</div><div class="gmail_extra">zero length and returned an empty page to the client.</div><div class="gmail_extra"><br></div><div class="gmail_extra">
In both cases I see that the backend is not provided a</div><div class="gmail_extra">Content-Length header.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Jim</div><div class="gmail_extra"><br></div></div>