|
Squid Web Cache v8/master
|
#include <ICP.h>
Public Member Functions | |
| ICPState (icp_common_t &aHeader, HttpRequest *aRequest) | |
| ~ICPState () override | |
| bool | isHit () const |
| whether the cache contains the requested entry | |
Public Attributes | |
| icp_common_t | header |
| HttpRequest * | request |
| int | fd |
| Ip::Address | from |
| char * | url |
| AccessLogEntryPointer | al |
Protected Member Functions | |
| LogTags * | loggingTags () const override |
| void | fillChecklist (ACLFilledChecklist &) const override |
| configure the given checklist (to reflect the current transaction state) | |
| bool | confirmAndPrepHit (const StoreEntry &) const |
| either confirms and starts processing a cache hit or returns false | |
| bool | startCollapsingOn (const StoreEntry &, const bool doingRevalidation) const |
| bool | mayInitiateCollapsing () const |
| whether Squid configuration allows us to become a CF initiator | |
| bool | onCollapsingPath () const |
| whether Squid configuration allows collapsing for this transaction | |
Protected Attributes | |
| bool | didCollapse = false |
| whether startCollapsingOn() was called and returned true | |
| ICPState::ICPState | ( | icp_common_t & | aHeader, |
| HttpRequest * | aRequest | ||
| ) |
Definition at line 139 of file icp_v2.cc.
References HTTPMSGLOCK(), and request.
|
override |
|
protected |
Definition at line 168 of file icp_v2.cc.
References Config, StoreClient::didCollapse, StoreEntry::hittingRequiresCollapsing(), SquidConfig::icp_hit_stale, SquidConfig::onoff, refreshCheckICP(), request, StoreClient::startCollapsingOn(), and StoreEntry::validToSend().
Referenced by isHit().
|
overrideprotectedvirtual |
Implements Acl::ChecklistFiller.
Definition at line 192 of file icp_v2.cc.
References ACLFilledChecklist::al, al, from, icpSyncAle(), request, ACLFilledChecklist::setRequest(), and url.
| bool ICPState::isHit | ( | ) | const |
Definition at line 155 of file icp_v2.cc.
References confirmAndPrepHit(), Http::METHOD_GET, storeGetPublic(), and url.
Referenced by doV2Query(), and doV3Query().
|
overrideprotectedvirtual |
Implements StoreClient.
Definition at line 183 of file icp_v2.cc.
References al, AccessLogEntry::cache, and AccessLogEntry::CacheDetails::code.
|
inlineprotectedinherited |
Definition at line 59 of file StoreClient.h.
References StoreClient::onCollapsingPath().
Referenced by clientReplyContext::createStoreEntry(), and clientReplyContext::processExpired().
|
protectedinherited |
Definition at line 52 of file store_client.cc.
References SquidConfig::accessList, Acl::Answer::allowed(), SquidConfig::collapsed_forwarding, SquidConfig::collapsedForwardingAccess, Config, ACLChecklist::fastCheck(), Acl::ChecklistFiller::fillChecklist(), and SquidConfig::onoff.
Referenced by StoreClient::mayInitiateCollapsing(), and StoreClient::startCollapsingOn().
|
protectedinherited |
Definition at line 66 of file store_client.cc.
References debugs, StoreClient::didCollapse, StoreEntry::hittingRequiresCollapsing(), StoreClient::loggingTags(), and StoreClient::onCollapsingPath().
Referenced by htcpSpecifier::checkHit(), confirmAndPrepHit(), clientReplyContext::identifyFoundObject(), clientReplyContext::processExpired(), and UrnState::start().
|
mutable |
Definition at line 77 of file ICP.h.
Referenced by doV2Query(), doV3Query(), fillChecklist(), and loggingTags().
|
mutableprotectedinherited |
Definition at line 64 of file StoreClient.h.
Referenced by clientReplyContext::cacheHit(), htcpSpecifier::checkHit(), confirmAndPrepHit(), and StoreClient::startCollapsingOn().
| int ICPState::fd |
Definition at line 73 of file ICP.h.
Referenced by doV2Query(), and doV3Query().
| Ip::Address ICPState::from |
Definition at line 75 of file ICP.h.
Referenced by doV2Query(), doV3Query(), and fillChecklist().
| icp_common_t ICPState::header |
| HttpRequest* ICPState::request |
Definition at line 72 of file ICP.h.
Referenced by ICPState(), ~ICPState(), confirmAndPrepHit(), doV2Query(), and fillChecklist().
| char* ICPState::url |
Definition at line 76 of file ICP.h.
Referenced by ~ICPState(), doV2Query(), doV3Query(), fillChecklist(), and isHit().