ServiceRep.cc
Go to the documentation of this file.
77 writeableCfg().port = cfg().protocol.caseCmp("icaps") == 0 ? DEFAULT_ICAPS_PORT : DEFAULT_ICAP_PORT;
129 * retriable means you can repeat the request if you suspect the first try failed due to a pconn race.
132 * If there are zero idle connections, (2) is irrelevant. (2) is only relevant when there are many
148 void Adaptation::Icap::ServiceRep::putConnection(const Comm::ConnectionPointer &conn, bool isReusable, bool sendReset, const char *comment)
523 void Adaptation::Icap::ServiceRep::announceStatusChange(const char *downPhrase, bool important) const
731 Adaptation::Icap::ConnWaiterDialer::ConnWaiterDialer(const CbcPointer<Adaptation::Icap::ModXact> &xact,
739 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:679
int availableConnections() const
Definition: ServiceRep.cc:200
void callException(const std::exception &e) override
called when the job throws during an async call
Definition: ServiceRep.cc:568
CBDATA_NAMESPACED_CLASS_INIT(Adaptation::Icap, ServiceRep)
void callWhenAvailable(AsyncCall::Pointer &cb, bool priority=false)
Definition: ServiceRep.cc:403
ServiceRep(const ServiceConfigPointer &aConfig)
Definition: ServiceRep.cc:34
Definition: AsyncJob.h:17
void startGettingOptions()
Definition: ServiceRep.cc:598
Definition: Config.h:25
Definition: pconn.h:38
static void ServiceRep_noteTimeToUpdate(void *data)
Definition: ServiceRep.cc:361
~ConnWaiterDialer() override
Definition: ServiceRep.cc:745
void noteConnectionFailed(const char *comment)
Definition: ServiceRep.cc:179
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:317
Initiate * makeXactLauncher(Http::Message *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp) override
Definition: ServiceRep.cc:672
Definition: ModXact.h:378
Comm::ConnectionPointer getIdleConnection(bool isRetriable)
Definition: ServiceRep.cc:119
Definition: Client.h:16
ConnWaiterDialer(const CbcPointer< Adaptation::Icap::ModXact > &xact, Adaptation::Icap::ConnWaiterDialer::Parent::Method aHandler)
Definition: ServiceRep.cc:731
void scheduleUpdate(time_t when)
Definition: ServiceRep.cc:610
Definition: MemBuf.h:23
void putConnection(const Comm::ConnectionPointer &conn, bool isReusable, bool sendReset, const char *comment)
Definition: ServiceRep.cc:148
void noteConnectionUse(const Comm::ConnectionPointer &conn)
Definition: ServiceRep.cc:173
#define CallJobHere(debugSection, debugLevel, job, Class, method)
Definition: AsyncJobCalls.h:59
void callWhenReady(AsyncCall::Pointer &cb)
Definition: ServiceRep.cc:421
Definition: SquidString.h:26
bool wantsUrl(const SBuf &urlPath) const override
Definition: ServiceRep.cc:325
void noteGoneWaiter()
An xaction is not waiting any more for service to be available.
Definition: ServiceRep.cc:239
void scheduleNotification()
Definition: ServiceRep.cc:444
Definition: Options.h:25
time_t optionsFetchTime() const
Definition: ServiceRep.cc:648
summarizes adaptation service answer for the noteAdaptationAnswer() API
Definition: Answer.h:24
bool wantsPreview(const SBuf &urlPath, size_t &wantedSize) const
Definition: ServiceRep.cc:331
Definition: HttpReply.h:24
struct servent * xgetservbyname(const char *name, const char *proto)
POSIX getservbyname(3) equivalent.
Definition: netdb.h:31
Definition: OptXact.h:55
void changeOptions(Options *newOptions)
Definition: ServiceRep.cc:455
bool availableForNew() const
a new transaction may start communicating with the service
Definition: ServiceRep.cc:307
bool needNewOptions() const
Definition: ServiceRep.cc:450
void setMaxConnections()
Set the maximum allowed connections for the service.
Definition: ServiceRep.cc:185
void noteAdaptationAnswer(const Answer &answer) override
Definition: ServiceRep.cc:538
int excessConnections() const
The number of connections which excess the Max-Connections limit.
Definition: ServiceRep.cc:224
void handleNewOptions(Options *newOptions)
Definition: ServiceRep.cc:576
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:523
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