ServiceRep.cc
Go to the documentation of this file.
76 writeableCfg().port = cfg().protocol.caseCmp("icaps") == 0 ? DEFAULT_ICAPS_PORT : DEFAULT_ICAP_PORT;
128 * retriable means you can repeat the request if you suspect the first try failed due to a pconn race.
131 * If there are zero idle connections, (2) is irrelevant. (2) is only relevant when there are many
147 void Adaptation::Icap::ServiceRep::putConnection(const Comm::ConnectionPointer &conn, bool isReusable, bool sendReset, const char *comment)
522 void Adaptation::Icap::ServiceRep::announceStatusChange(const char *downPhrase, bool important) const
730 Adaptation::Icap::ConnWaiterDialer::ConnWaiterDialer(const CbcPointer<Adaptation::Icap::ModXact> &xact,
738 Adaptation::Icap::ConnWaiterDialer::ConnWaiterDialer(const Adaptation::Icap::ConnWaiterDialer &aConnWaiter): Parent(aConnWaiter)
Definition: Initiate.h:30
Definition: AsyncJob.h:31
void appendf(const char *fmt,...) PRINTF_FORMAT_ARG2
Append operation with printf-style arguments.
Definition: Packable.h:61
Definition: Service.h:27
const char * status() const override
internal cleanup; do not call directly
Definition: ServiceRep.cc:678
int availableConnections() const
Definition: ServiceRep.cc:199
void callException(const std::exception &e) override
called when the job throws during an async call
Definition: ServiceRep.cc:567
CBDATA_NAMESPACED_CLASS_INIT(Adaptation::Icap, ServiceRep)
void callWhenAvailable(AsyncCall::Pointer &cb, bool priority=false)
Definition: ServiceRep.cc:402
ServiceRep(const ServiceConfigPointer &aConfig)
Definition: ServiceRep.cc:33
Definition: AsyncJob.h:17
void startGettingOptions()
Definition: ServiceRep.cc:597
Definition: Config.h:25
Definition: pconn.h:38
static void ServiceRep_noteTimeToUpdate(void *data)
Definition: ServiceRep.cc:360
~ConnWaiterDialer() override
Definition: ServiceRep.cc:744
void noteConnectionFailed(const char *comment)
Definition: ServiceRep.cc:178
ServiceRep::Pointer theService
Definition: ServiceRep.h:201
AsyncCall::Pointer callback
Definition: ServiceRep.h:124
Definition: HttpRequest.h:48
bool availableForOld() const
a transaction notified about connection slot availability may start communicating with the service
Definition: ServiceRep.cc:316
Initiate * makeXactLauncher(Http::Message *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp) override
Definition: ServiceRep.cc:671
Definition: ModXact.h:378
Comm::ConnectionPointer getIdleConnection(bool isRetriable)
Definition: ServiceRep.cc:118
Definition: Client.h:16
ConnWaiterDialer(const CbcPointer< Adaptation::Icap::ModXact > &xact, Adaptation::Icap::ConnWaiterDialer::Parent::Method aHandler)
Definition: ServiceRep.cc:730
void scheduleUpdate(time_t when)
Definition: ServiceRep.cc:609
Definition: MemBuf.h:23
void putConnection(const Comm::ConnectionPointer &conn, bool isReusable, bool sendReset, const char *comment)
Definition: ServiceRep.cc:147
void noteConnectionUse(const Comm::ConnectionPointer &conn)
Definition: ServiceRep.cc:172
#define CallJobHere(debugSection, debugLevel, job, Class, method)
Definition: AsyncJobCalls.h:59
void callWhenReady(AsyncCall::Pointer &cb)
Definition: ServiceRep.cc:420
Definition: SquidString.h:25
bool wantsUrl(const SBuf &urlPath) const override
Definition: ServiceRep.cc:324
void noteGoneWaiter()
An xaction is not waiting any more for service to be available.
Definition: ServiceRep.cc:238
void scheduleNotification()
Definition: ServiceRep.cc:443
Definition: Options.h:25
time_t optionsFetchTime() const
Definition: ServiceRep.cc:647
summarizes adaptation service answer for the noteAdaptationAnswer() API
Definition: Answer.h:24
bool wantsPreview(const SBuf &urlPath, size_t &wantedSize) const
Definition: ServiceRep.cc:330
Definition: HttpReply.h:24
Definition: OptXact.h:55
void changeOptions(Options *newOptions)
Definition: ServiceRep.cc:454
bool availableForNew() const
a new transaction may start communicating with the service
Definition: ServiceRep.cc:306
bool needNewOptions() const
Definition: ServiceRep.cc:449
void setMaxConnections()
Set the maximum allowed connections for the service.
Definition: ServiceRep.cc:184
void noteAdaptationAnswer(const Answer &answer) override
Definition: ServiceRep.cc:537
int excessConnections() const
The number of connections which excess the Max-Connections limit.
Definition: ServiceRep.cc:223
void handleNewOptions(Options *newOptions)
Definition: ServiceRep.cc:575
void eventAdd(const char *name, EVH *func, void *arg, double when, int weight, bool cbdata)
Definition: event.cc:107
void announceStatusChange(const char *downPhrase, bool important) const
Definition: ServiceRep.cc:522
Definition: ServiceRep.h:59
Definition: AccessCheck.h:24
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products