Go to the source code of this file.
Functions | |
void | peerSourceHashInit (void) |
CachePeer * | peerSourceHashSelectParent (PeerSelector *) |
Function Documentation
◆ peerSourceHashInit()
void peerSourceHashInit | ( | void | ) |
Definition at line 46 of file peer_sourcehash.cc.
References assert, CurrentCachePeers(), double, int, PEER_PARENT, peerSortWeight(), peerSourceHashRegisterWithCacheManager(), ROTATE_LEFT, and SourceHashPeers().
Referenced by serverConnectionsOpen().
◆ peerSourceHashSelectParent()
CachePeer * peerSourceHashSelectParent | ( | PeerSelector * | ps | ) |
Definition at line 138 of file peer_sourcehash.cc.
References assert, HttpRequest::client_addr, debugs, MAX_IPSTRLEN, peerHTTPOkay(), PeerSelector::request, ROTATE_LEFT, SourceHashPeers(), and Ip::Address::toStr().
Referenced by PeerSelector::selectSomeParent().