CachePeer.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9#include "squid.h"
10#include "acl/Gadgets.h"
11#include "CachePeer.h"
12#include "defines.h"
14#include "pconn.h"
15#include "PeerPoolMgr.h"
16#include "SquidConfig.h"
17
19
21{
22 xfree(name);
23 xfree(host);
24
25 while (NeighborTypeDomainList *l = typelist) {
26 typelist = l->next;
27 xfree(l->domain);
28 xfree(l);
29 }
30
32
33#if USE_CACHE_DIGESTS
36#endif
37
38 delete next;
39
40 xfree(login);
41
42 delete standby.pool;
43
44 // the mgr job will notice that its owner is gone and stop
45 PeerPoolMgr::Checkpoint(standby.mgr, "peer gone");
46
48}
49
50time_t
52{
53 if (connect_timeout_raw > 0)
56}
57
class SquidConfig Config
Definition: SquidConfig.cc:12
#define cbdataReferenceDone(var)
Definition: cbdata.h:350
#define CBDATA_CLASS_INIT(type)
Definition: cbdata.h:318
acl_access * access
Definition: CachePeer.h:79
NeighborTypeDomainList * typelist
Definition: CachePeer.h:78
char * login
Definition: CachePeer.h:174
char * host
Definition: CachePeer.h:40
time_t connect_timeout_raw
connect_timeout; use connectTimeout() instead!
Definition: CachePeer.h:175
char * domain
Forced domain.
Definition: CachePeer.h:187
CachePeer * next
Definition: CachePeer.h:153
PeerDigest * digest
Definition: CachePeer.h:142
~CachePeer()
Definition: CachePeer.cc:20
time_t connectTimeout() const
Definition: CachePeer.cc:51
char * name
Definition: CachePeer.h:39
char * digest_url
Definition: CachePeer.h:143
struct CachePeer::@38 standby
optional "cache_peer standby=limit" feature
representation of a neighbor_type_domain configuration directive. A POD
NeighborTypeDomainList * next
static void Checkpoint(const Pointer &mgr, const char *reason)
Definition: PeerPoolMgr.cc:241
time_t peer_connect
Definition: SquidConfig.h:115
struct SquidConfig::@98 Timeout
void aclDestroyAccessList(acl_access **list)
Definition: Gadgets.cc:279
#define xfree

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors