neighbors.h File Reference
#include "anyp/forward.h"
#include "enums.h"
#include "ICP.h"
#include "lookup_t.h"
#include "typedefs.h"
Include dependency graph for neighbors.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


CachePeergetFirstUpParent (PeerSelector *)
CachePeergetSingleParent (PeerSelector *)
int neighborsCount (PeerSelector *)
int neighborsUdpPing (HttpRequest *, StoreEntry *, IRCB *callback, PeerSelector *ps, int *exprep, int *timeout)
void neighborAddAcl (const char *, const char *)
void neighborsUdpAck (const cache_key *, icp_common_t *, const Ip::Address &)
void neighborAdd (const char *, const char *, int, int, int, int, int)
void neighbors_init (void)
void neighborsHtcpClear (StoreEntry *, HttpRequest *, const HttpRequestMethod &, htcp_clr_reason)
CachePeerfindCachePeerByName (const char *)
 cache_peer with a given name (or nil) More...
CachePeergetDefaultParent (PeerSelector *)
CachePeergetRoundRobinParent (PeerSelector *)
CachePeergetWeightedRoundRobinParent (PeerSelector *)
void peerClearRRStart (void)
void peerClearRR (void)
void peerAlive (CachePeer *)
lookup_t peerDigestLookup (CachePeer *p, PeerSelector *)
CachePeerneighborsDigestSelect (PeerSelector *)
void peerNoteDigestLookup (HttpRequest *request, CachePeer *p, lookup_t lookup)
int neighborUp (const CachePeer *e)
const char * neighborTypeStr (const CachePeer *e)
peer_t neighborType (const CachePeer *, const AnyP::Uri &)
void dump_peer_options (StoreEntry *, CachePeer *)
int peerHTTPOkay (const CachePeer *, PeerSelector *)
time_t positiveTimeout (const time_t timeout)
bool peerCanOpenMore (const CachePeer *p)
 Whether we can open new connections to the peer (e.g., despite max-conn) More...
bool peerHasConnAvailable (const CachePeer *p)
 Whether the peer has idle or standby connections that can be used now. More...
void peerConnClosed (CachePeer *p)
 Notifies peer of an associated connection closure. More...
CachePeerwhichPeer (const Ip::Address &from)

Function Documentation

◆ dump_peer_options()

◆ findCachePeerByName()

CachePeer * findCachePeerByName ( const char *  name)

Definition at line 1050 of file

References CurrentCachePeers().

Referenced by ConfigParser::cachePeer(), and parse_peer().

◆ getDefaultParent()

◆ getFirstUpParent()

◆ getRoundRobinParent()

◆ getSingleParent()

CachePeer * getSingleParent ( PeerSelector )

◆ getWeightedRoundRobinParent()

◆ neighborAdd()

void neighborAdd ( const char *  ,
const char *  ,
int  ,
int  ,
int  ,
int  ,

◆ neighborAddAcl()

void neighborAddAcl ( const char *  ,
const char *   

◆ neighbors_init()

◆ neighborsCount()

int neighborsCount ( PeerSelector ps)

Definition at line 272 of file

References CurrentCachePeers(), debugs, and peerWouldBePinged().

Referenced by peerSelectIcpPing().

◆ neighborsDigestSelect()

◆ neighborsHtcpClear()

void neighborsHtcpClear ( StoreEntry e,
HttpRequest req,
const HttpRequestMethod method,
htcp_clr_reason  reason 

◆ neighborsUdpAck()

◆ neighborsUdpPing()

◆ neighborType()

◆ neighborTypeStr()

const char * neighborTypeStr ( const CachePeer e)

◆ neighborUp()

◆ peerAlive()

◆ peerCanOpenMore()

bool peerCanOpenMore ( const CachePeer p)

◆ peerClearRR()

void peerClearRR ( void  )

Called whenever the round-robin counters need to be reset to a sane state. So far those times are:

  • On startup and reconfigure - to set the counters to sane initial settings.
  • When a CachePeer has revived from dead, to prevent the revived CachePeer being flooded with requests which it has 'missed' during the down period.

Definition at line 448 of file

References CurrentCachePeers().

Referenced by peerAlive(), and peerClearRRLoop().

◆ peerClearRRStart()

void peerClearRRStart ( void  )

This gets called on startup and restart to kick off the CachePeer round-robin maintenance event. It ensures that no matter how many times its called no more than one event is scheduled.

Definition at line 431 of file

References peerClearRRLoop().

Referenced by parse_peer().

◆ peerConnClosed()

◆ peerDigestLookup()

◆ peerHasConnAvailable()

bool peerHasConnAvailable ( const CachePeer p)

Definition at line 231 of file

References PconnPool::count(), debugs, CachePeer::pool, and CachePeer::standby.

Referenced by peerHTTPOkay().

◆ peerHTTPOkay()

◆ peerNoteDigestLookup()

void peerNoteDigestLookup ( HttpRequest request,
CachePeer p,
lookup_t  lookup 

◆ positiveTimeout()

time_t positiveTimeout ( const time_t  timeout)
max(1, timeout)

Definition at line 1095 of file

References max().

Referenced by FwdState::connectingTimeout(), and PeerPoolMgr::handleOpenedConnection().

◆ whichPeer()






Web Site Translations