|
Squid Web Cache v8/master
|
#include <DelayId.h>
Public Member Functions | |
| DelayId () | |
| DelayId (unsigned short, const DelayIdComposite::Pointer &) | |
| ~DelayId () | |
| unsigned short | pool () const |
| bool | operator== (DelayId const &rhs) const |
| operator bool () const | |
| int | bytesWanted (int min, int max) const |
| void | bytesIn (int qty) |
| void | setNoDelay (bool const) |
| void | delayRead (const AsyncCallPointer &) |
Static Public Member Functions | |
| static DelayId | DelayClient (ClientHttpRequest *, HttpReply *reply=nullptr) |
Private Attributes | |
| unsigned short | pool_ |
| DelayIdComposite::Pointer | compositeId |
| bool | markedAsNoDelay |
| DelayId::DelayId | ( | ) |
Definition at line 28 of file DelayId.cc.
Referenced by DelayClient().
| DelayId::DelayId | ( | unsigned short | aPool, |
| const DelayIdComposite::Pointer & | aCompositeId | ||
| ) |
Definition at line 31 of file DelayId.cc.
References assert, compositeId, debugs, and pool_.
| DelayId::~DelayId | ( | ) |
Definition at line 39 of file DelayId.cc.
| void DelayId::bytesIn | ( | int | qty | ) |
Definition at line 135 of file DelayId.cc.
References DelayIdComposite::bytesIn(), and compositeId.
Referenced by Ftp::Client::dataRead(), and HttpStateData::readReply().
Definition at line 119 of file DelayId.cc.
References DelayIdComposite::bytesWanted(), compositeId, and max().
Referenced by store_client::bytesWanted(), and MemObject::mostBytesWanted().
|
static |
Definition at line 64 of file DelayId.cc.
References DelayId(), Acl::Answer::allowed(), assert, HttpRequest::auth_user_request, HttpRequest::client_addr, clientAclChecklistFill(), Config, DBG_IMPORTANT, debugs, DelayPools::delay_data, SquidConfig::delay_pool_uses_indirect_client, ACLChecklist::fastCheck(), HttpRequest::indirect_client_addr, Ip::Address::isNoAddr(), SquidConfig::onoff, pool(), DelayPools::pools(), ClientHttpRequest::request, ACLFilledChecklist::src_addr, StringToSBuf(), HttpRequest::tag, ACLFilledChecklist::updateReply(), and CompositePoolNode::CompositeSelectionDetails::user.
Referenced by Ssl::ServerBump::ServerBump(), clientReplyContext::createStoreEntry(), clientReplyContext::doGetMoreData(), clientReplyContext::processExpired(), clientReplyContext::sendMoreData(), clientReplyContext::setReplyToStoreEntry(), statClientRequests(), switchToTunnel(), and tunnelStart().
| void DelayId::delayRead | ( | const AsyncCallPointer & | aRead | ) |
Definition at line 144 of file DelayId.cc.
References assert, compositeId, and DelayIdComposite::delayRead().
| DelayId::operator bool | ( | ) | const |
Whether we may delay reading. This operator is meant to be used as an optimization that helps avoid more expensive bytesWanted() computations.
| false | if bytesWanted() called with a positive maximum limit parameter will never return zero |
Definition at line 57 of file DelayId.cc.
| bool DelayId::operator== | ( | DelayId const & | rhs | ) | const |
Definition at line 49 of file DelayId.cc.
References compositeId, and pool_.
| unsigned short DelayId::pool | ( | ) | const |
| void DelayId::setNoDelay | ( | bool const | newValue | ) |
Definition at line 109 of file DelayId.cc.
References markedAsNoDelay.
Referenced by MemObject::setNoDelay().
|
private |
Definition at line 45 of file DelayId.h.
Referenced by DelayId(), bytesIn(), bytesWanted(), delayRead(), and operator==().
|
private |
Definition at line 46 of file DelayId.h.
Referenced by setNoDelay().
|
private |
Definition at line 44 of file DelayId.h.
Referenced by DelayId(), operator==(), and pool().