Hi,<br><br>What I'm reporting is not true HTTP 206 requests for resuming downloads or genuine HTTP clients requesting for these. The logs I provide below of wget and cURL shows that Varnish is deliberately dropping connections, forcing the HTTP client to attempt to resume the download. So the HTTP is a consequence of a issue generated by Varnish. This started to affect me on version 3.0 and currently in 3.0.1<br>
<br>Bellow is a URL containing a full output log for the command wget --verbose <a href="http://varnish.kurtkraut.net/1GBtest.zip">http://varnish.kurtkraut.net/1GBtest.zip</a><br><br>Pastebin: <a href="http://pastebin.com/hfYRhKq7">http://pastebin.com/hfYRhKq7</a><br>
<br>Also, the output of cURL: <a href="http://pastebin.com/CuMr3mbp">http://pastebin.com/CuMr3mbp</a><br><br>You may reproduce the issue trying to download <a href="http://varnish.kurtkraut.net/1GBtest.zip">http://varnish.kurtkraut.net/1GBtest.zip</a> - I will leave this URL online for the next weeks.<br>
<br>What do you think? Is it a bug?<br><br>Thanks,<br><br><br>Kurt Kraut<br><br><div class="gmail_quote">2011/10/7 Tollef Fog Heen <span dir="ltr"><<a href="mailto:tfheen@varnish-software.com">tfheen@varnish-software.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">]] Kurt Kraut<br>
<div class="im"><br>
| I've already reported this on Varnish 3.0 and I waited to test it on Varnish<br>
| 3.0.1 and the behaviour is the same. The majority of HTTP GET of files<br>
| larger than 1mb are constantly interrupted and restarted with HTTP 206. Here<br>
| is a sample collected from varnishncsa:<br>
<br>
</div>206 is «Partial Content» which we send if we get a request with Range<br>
headers.<br>
<div class="im"><br>
| This was an iPhone watching a MP4 video, but this also happens with curl,<br>
| wget, Firefox, anything I've tested.<br>
<br>
</div>Can you please provide varnishlog + command line from a run with curl<br>
that shows the problem?<br>
<br>
<br>
[...]<br>
<div class="im"><br>
| 3) Does anyone suggest a workaround for this?<br>
<br>
</div>sub vcl_recv {<br>
unset req.http.Range;<br>
}<br>
<br>
that'll increase the amount of bandwidth clients are consuming, though.<br>
<br>
Cheers,<br>
<font color="#888888">--<br>
Tollef Fog Heen<br>
Varnish Software<br>
t: <a href="tel:%2B47%2021%2098%2092%2064" value="+4721989264">+47 21 98 92 64</a><br>
</font></blockquote></div><br>