<div dir="ltr">Hello,<br>I had a squid (3.5.15) instance (named t1) in reverse-proxy mode:<br><br>http_port 80 accel<br>cache_peer <a href="http://up.example.com">up.example.com</a> parent 80 0 default no-query no-digest no-netdb-exchange originserver name=origin<br><br>It works great, no problems so far.<br><br>Now I wanted to add an instance (named t2), having both in sibling relation (cache hierarchy):<br><br>on t1:<br>http_port 80 accel<br>cache_peer <a href="http://up.example.com">up.example.com</a> parent 80 0 default no-query no-digest no-netdb-exchange originserver<br>cache_peer t2 sibling 80 4827 htcp no-digest<br><br>on t2:<br>http_port 80 accel<br>cache_peer <a href="http://up.example.com">up.example.com</a> parent 80 0 default no-query no-digest no-netdb-exchange originserver<br>cache_peer t1 sibling 80 4827 htcp no-digest<br><br>Since t1 had many files cached, t2 started pulling files from t1, but sometimes, the following error occurs.<br><br>Client request from t2:<br>GET /test.zip HTTP/1.1<br>User-Agent: Wget/1.17.1 (linux-gnu)<br>Accept: */*<br>Accept-Encoding: identity<br>Host: <a href="http://cache.example.com">cache.example.com</a><br>Connection: Keep-Alive<br><br>t2 asks t1 via htcp:<br>GET <a href="http://cache.example.com/test.zip">http://cache.example.com/test.zip</a><br>User-Agent: Wget/1.17.1 (linux-gnu)<br>Accept: */*<br>Accept-Encoding: identity<br>Host: <a href="http://cache.example.com">cache.example.com</a><br>Via: 1.1 t2 (squid/3.5.15)<br>Surrogate-Capability: t2="Surrogate/1.0"<br>X-Forwarded-For: 1.2.3.4<br>Cache-Control: max-age=259200<br><br>t1 replies to htcp with:<br>Age: 782932<br>Expires: Sat, 01 Oct 2016 09:07:09 GMT<br>Last-Modified: Sun, 15 Nov 2015 00:09:20 GMT<br>Cache-to-Origin: <a href="http://cache.example.com">cache.example.com</a> 1 0.001000 1<br><br>then t2 requests the file from t1 via http:<br>GET <a href="http://cache.example.com/test.zip">http://cache.example.com/test.zip</a> HTTP/1.1<br>User-Agent: Wget/1.17.1 (linux-gnu)<br>Accept: */*<br>Accept-Encoding: identity<br>Host: <a href="http://cache.example.com">cache.example.com</a><br>Via: 1.1 t2 (squid/3.5.15)<br>Surrogate-Capability: t2="Surrogate/1.0"<br>X-Forwarded-For: 1.2.3.4<br>Cache-Control: max-age=259200, only-if-cached<br>Connection: keep-alive<br><br>and t1 replies with 504:<br>HTTP/1.1 504 Gateway Timeout<br>Server: squid/3.5.15<br>Mime-Version: 1.0<br>Date: Wed, 13 Apr 2016 10:36:01 GMT<br>Content-Type: text/html;charset=utf-8<br>Content-Length: 4182<br>X-Squid-Error: ERR_ONLY_IF_CACHED_MISS 0<br>Vary: Accept-Language<br>Content-Language: en<br>Age: 1460543762<br>Warning: 113 t1 (squid/3.5.15) This cache hit is still fresh and more than 1 day old<br>Warning: 110 squid/3.5.15 "Response is stale"<br>Warning: 111 squid/3.5.15 "Revalidation failed"<br>X-Cache: HIT from t1<br>X-Cache-Lookup: HIT from t1:80<br>Via: 1.1 t1 (squid/3.5.15)<br>Connection: keep-alive<br><br>I checked upstream (<a href="http://up.example.com">up.example.com</a>) and there was no connection attempt. Tried with ICP/HTCP, same result. I'm not sure, is this bug <a href="http://bugs.squid-cache.org/show_bug.cgi?id=4223">http://bugs.squid-cache.org/show_bug.cgi?id=4223</a>?<br><br>Thanks,<br>Tomas Mozes<br></div>