]> git.ipfire.org Git - thirdparty/squid.git/commit
Report (problems with) DEAD-at-start cache_peers (#1155)
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 29 Sep 2022 21:03:06 +0000 (21:03 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 2 Oct 2022 22:43:31 +0000 (22:43 +0000)
commit92c4f6230c940b7a32a448e9d66b18ad09ceb6e5
treeedc78279616a3ca368dd3484464b0c7a08284882
parent395c3e2aa1bb7809d863c8799bfa3cc79d013587
Report (problems with) DEAD-at-start cache_peers (#1155)

When a cache_peer is (re)configured, Squid probes its address using a
throw-away TCP connection. If and only if that TCP probe succeeds, peer
selection algorithms may pick the peer. Until then, the cache_peer is
treated as if it was DEAD.

This change preserves the logic summarized above but starts _reporting_
the initial probe failure and the fact that it marks the cache_peer
DEAD. Without these reports, admins often naturally assume that the
cache_peer is alive, especially if traffic can be served without it.
src/CachePeer.h
src/neighbors.cc