CachePeer.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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"
13 #include "NeighborTypeDomainList.h"
14 #include "pconn.h"
15 #include "PeerPoolMgr.h"
16 
18 
20 {
21  xfree(name);
22  xfree(host);
23 
24  while (NeighborTypeDomainList *l = typelist) {
25  typelist = l->next;
26  xfree(l->domain);
27  xfree(l);
28  }
29 
31 
32 #if USE_CACHE_DIGESTS
35 #endif
36 
37  delete next;
38 
39  xfree(login);
40 
41  delete standby.pool;
42 
43  // the mgr job will notice that its owner is gone and stop
44  PeerPoolMgr::Checkpoint(standby.mgr, "peer gone");
45 
46  xfree(domain);
47 }
48 
~CachePeer()
Definition: CachePeer.cc:19
PeerDigest * digest
Definition: CachePeer.h:143
char * login
Definition: CachePeer.h:175
#define cbdataReferenceDone(var)
Definition: cbdata.h:350
CachePeer * next
Definition: CachePeer.h:154
char * domain
Forced domain.
Definition: CachePeer.h:188
char * name
Definition: CachePeer.h:40
static void Checkpoint(const Pointer &mgr, const char *reason)
Definition: PeerPoolMgr.cc:261
representation of a neighbor_type_domain configuration directive. A POD
NeighborTypeDomainList * typelist
Definition: CachePeer.h:79
struct CachePeer::@36 standby
optional "cache_peer standby=limit" feature
acl_access * access
Definition: CachePeer.h:80
void aclDestroyAccessList(acl_access **list)
Definition: Gadgets.cc:284
NeighborTypeDomainList * next
char * digest_url
Definition: CachePeer.h:144
#define CBDATA_CLASS_INIT(type)
Definition: cbdata.h:318
#define xfree
char * host
Definition: CachePeer.h:41

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors