Go to the source code of this file.
Functions | |
void | carpInit (void) |
CachePeer * | carpSelectParent (PeerSelector *) |
Function Documentation
◆ carpInit()
void carpInit | ( | void | ) |
Definition at line 51 of file carp.cc.
References assert, CarpPeers(), carpRegisterWithCacheManager(), CurrentCachePeers(), double, int, PEER_PARENT, peerSortWeight(), and ROTATE_LEFT.
Referenced by serverConnectionsOpen().
◆ carpSelectParent()
CachePeer * carpSelectParent | ( | PeerSelector * | ps | ) |
Definition at line 138 of file carp.cc.
References SBuf::append(), SBuf::appendf(), assert, CarpPeers(), debugs, HttpRequest::effectiveRequestUri(), AnyP::Uri::getScheme(), AnyP::Uri::host(), AnyP::UriScheme::image(), SBuf::isEmpty(), SBuf::length(), SBuf::npos, AnyP::Uri::path(), peerHTTPOkay(), AnyP::Uri::port(), SBuf::rawContent(), PeerSelector::request, ROTATE_LEFT, and HttpRequest::url.
Referenced by PeerSelector::selectSomeParent().