]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/CachePeer.cc
2 * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
10 #include "acl/Gadgets.h"
11 #include "CachePeer.h"
13 #include "NeighborTypeDomainList.h"
15 #include "PeerPoolMgr.h"
16 #include "SquidConfig.h"
18 CBDATA_CLASS_INIT(CachePeer
);
20 CachePeer::~CachePeer()
25 while (NeighborTypeDomainList
*l
= typelist
) {
31 aclDestroyAccessList(&access
);
34 cbdataReferenceDone(digest
);
44 // the mgr job will notice that its owner is gone and stop
45 PeerPoolMgr::Checkpoint(standby
.mgr
, "peer gone");
51 CachePeer::connectTimeout() const
53 if (connect_timeout_raw
> 0)
54 return connect_timeout_raw
;
55 return Config
.Timeout
.peer_connect
;