<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 13, 2016 at 4:30 PM, Geoff Simmons <span dir="ltr"><<a href="mailto:geoff@uplex.de" target="_blank">geoff@uplex.de</a>></span> wrote:<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">
<br>
- -   Timestamp      Bereq: 1452675822.047840 0.015508 0.015508<br>
- -   FetchError     http first read error: EOF<br>
- -   BackendClose   232 reload_2016-01-12T07:28:50.cp_12<br>
- -   Timestamp      Beresp: 1452675876.038544 54.006212 53.990704<br>
<br>
This says that about 54 seconds elapsed after Varnish sent the backend<br>
request until it gave up waiting for the response. That could very<br>
well be a first byte timeout, especially since the waiting time is so<br>
close to the round number 54 (although 54 seconds is an unusual value<br>
for first_byte_timeout).<br>
<span><br>
> The issue doesn't seem to be a connection problem with the backend<br>
> because a simple curl call of the same URL from the varnish box<br>
> seems to work fine. So we'd like to know what could be the reason<br>
> behind the error mentioned above and how we can fix it.<br>
<br>
</span>Does Varnish get the FetchError every time, or only sometimes? It<br>
could have been that your curl tests were "just lucky".<br></blockquote><div> Hey, like you said the issue only happens sometimes. But the first_byte_timeout for all the backends is set to 300 seconds. </div><div><br></div><div><div>[root@varnish ~]# sudo varnishadm "param.show first_byte_timeout" </div><div>first_byte_timeout</div><div>        Value is: 300.000 [seconds]</div><div>        Default is: 60.000</div><div>        Minimum is: 0.000</div></div><div><br></div><div>Also the time difference between the backend request and backend response seems to be different each time this issue occurs. For instance, in this case <a href="http://pastebin.com/eS2Ldnbv">http://pastebin.com/eS2Ldnbv</a> the difference is just 0.6 seconds. So I don't think it can be an issue with timeouts. </div><div><br></div><div>Would this also happen if the backend server gives an empty response to the request ? </div></div></div></div>