28 tlsContext(secure, sslContext),
74 debugs(15, 2,
"connection to " << *
this <<
" succeeded");
93 const auto level = consideredAliveByAdmin ?
DBG_IMPORTANT : 2;
94 debugs(15, level,
"ERROR: Connection to " << *
this <<
" failed");
96 if (consideredAliveByAdmin) {
101 debugs(15, 2,
"additional failures needed to mark this cache_peer DEAD: " <<
tcp_up);
105 debugs(15, 2,
"cache_peer " << *
this <<
" is still DEAD");
112 if (!newName || !*newName)
std::ostream & operator<<(std::ostream &os, const CachePeer &p)
identify the given cache peer in cache.log messages and such
#define Here()
source code location of the caller
#define CBDATA_CLASS_INIT(type)
CachePeer(const char *hostname)
void noteSuccess()
reacts to a successful establishment of a connection to this cache_peer
Security::FuturePeerContext * securityContext()
NeighborTypeDomainList * typelist
Security::PeerOptions secure
security settings for peer connection
time_t connect_timeout_raw
connect_timeout; use connectTimeout() instead!
struct CachePeer::@18 stats
char * domain
Forced domain.
Security::FuturePeerContext tlsContext
struct CachePeer::@25 standby
optional "cache_peer standby=limit" feature
time_t connectTimeout() const
void noteFailure()
reacts to a failed attempt to establish a connection to this cache_peer
void rename(const char *)
(re)configure cache_peer name=value
representation of a neighbor_type_domain configuration directive. A POD
NeighborTypeDomainList * next
static void Checkpoint(const Pointer &mgr, const char *reason)
CodeContext with constant details known at construction time.
A combination of PeerOptions and the corresponding Context.
bool encryptTransport
whether transport encryption (TLS/SSL) is to be used on connections to the peer
struct SquidConfig::@77 Timeout
an std::runtime_error with thrower location info
#define debugs(SECTION, LEVEL, CONTENT)
void aclDestroyAccessList(acl_access **list)
void peerAlive(CachePeer *p)
const char * neighborTypeStr(const CachePeer *p)
SBuf ToSBuf(Args &&... args)
slowly stream-prints all arguments into a freshly allocated SBuf