peer_select.cc File Reference
#include "squid.h"
#include "acl/FilledChecklist.h"
#include "base/AsyncCbdataCalls.h"
#include "base/InstanceId.h"
#include "base/TypeTraits.h"
#include "CachePeer.h"
#include "CachePeers.h"
#include "carp.h"
#include "client_side.h"
#include "dns/LookupDetails.h"
#include "errorpage.h"
#include "event.h"
#include "FwdState.h"
#include "globals.h"
#include "hier_code.h"
#include "htcp.h"
#include "http/Stream.h"
#include "HttpRequest.h"
#include "icmp/net_db.h"
#include "ICP.h"
#include "ip/tools.h"
#include "ipcache.h"
#include "neighbors.h"
#include "peer_sourcehash.h"
#include "peer_userhash.h"
#include "PeerSelectState.h"
#include "SquidConfig.h"
#include "Store.h"
#include "time/gadgets.h"
Include dependency graph for peer_select.cc:

Go to the source code of this file.

Classes

class  FwdServer
 
class  PeerSelectionDumper
 a helper class to report a selected destination (for debugging) More...
 
class  PeerSelectorPingMonitor
 

Functions

static std::ostream & operator<< (std::ostream &os, const PeerSelectionDumper &fsd)
 prints PeerSelectionDumper (for debugging) More...
 
static PeerSelectorPingMonitorPingMonitor ()
 monitors all PeerSelector ICP ping timeouts More...
 
static int peerSelectIcpPing (PeerSelector *ps, int direct, StoreEntry *entry)
 
static void peerSelect (PeerSelectionInitiator *initiator, HttpRequest *request, AccessLogEntry::Pointer const &al, StoreEntry *entry)
 
bool peerAllowedToUse (const CachePeer *, PeerSelector *)
 
void peerSelectInit (void)
 
 InstanceIdDefinitions (PeerSelector, "PeerSelector")
 

Variables

struct {
   int   timeouts
 
PeerStats
 
static const char * DirectStr []
 

Function Documentation

◆ InstanceIdDefinitions()

InstanceIdDefinitions ( PeerSelector  ,
"PeerSelector"   
)

◆ operator<<()

static std::ostream & operator<< ( std::ostream &  os,
const PeerSelectionDumper fsd 
)
static

◆ peerAllowedToUse()

◆ peerSelect()

◆ peerSelectIcpPing()

◆ peerSelectInit()

void peerSelectInit ( void  )

Definition at line 922 of file peer_select.cc.

References PeerStats.

Referenced by serverConnectionsOpen().

◆ PingMonitor()

static PeerSelectorPingMonitor & PingMonitor ( )
static

Variable Documentation

◆ DirectStr

const char* DirectStr[]
static
Initial value:
= {
"DIRECT_UNKNOWN",
"DIRECT_NO",
"DIRECT_MAYBE",
"DIRECT_YES"
}

Definition at line 70 of file peer_select.cc.

Referenced by PeerSelector::checkAlwaysDirectDone(), PeerSelector::checkNeverDirectDone(), and PeerSelector::selectMore().

◆ 

struct { ... } PeerStats

◆ timeouts

int timeouts

Definition at line 67 of file peer_select.cc.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors