ServiceRep.h
Go to the documentation of this file.
78 Initiate *makeXactLauncher(Http::Message *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp) override;
90 void putConnection(const Comm::ConnectionPointer &conn, bool isReusable, bool sendReset, const char *comment);
202 ConnWaiterDialer(const CbcPointer<Adaptation::Icap::ModXact> &xact, Adaptation::Icap::ConnWaiterDialer::Parent::Method aHandler);
Definition: Initiate.h:30
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
bool connOverloadReported
whether we reported exceeding theMaxConnections
Definition: ServiceRep.h:144
void callException(const std::exception &e) override
called when the job throws during an async call
Definition: ServiceRep.cc:567
void callWhenAvailable(AsyncCall::Pointer &cb, bool priority=false)
Definition: ServiceRep.cc:402
ServiceRep(const ServiceConfigPointer &aConfig)
Definition: ServiceRep.cc:33
Security::SessionStatePointer sslSession
Definition: ServiceRep.h:117
void startGettingOptions()
Definition: ServiceRep.cc:597
A combination of PeerOptions and the corresponding Context.
Definition: PeerOptions.h:154
ICAP::Method parseMethod(const char *) const
Definition: pconn.h:38
~ConnWaiterDialer() override
Definition: ServiceRep.cc:744
void noteConnectionFailed(const char *comment)
Definition: ServiceRep.cc:178
ICAP::VectPoint parseVectPoint(const char *) const
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
CBDATA_CHILD(ServiceRep)
Initiate * makeXactLauncher(Http::Message *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp) override
Definition: ServiceRep.cc:671
Definition: AsyncJobCalls.h:91
Comm::ConnectionPointer getIdleConnection(bool isRetriable)
Definition: ServiceRep.cc:118
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
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
void callWhenReady(AsyncCall::Pointer &cb)
Definition: ServiceRep.cc:420
Security::ContextPointer sslContext
Definition: ServiceRep.h:114
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
std::deque< Client > theNotificationWaiters
Definition: ServiceRep.h:137
time_t optionsFetchTime() const
Definition: ServiceRep.cc:647
summarizes adaptation service answer for the noteAdaptationAnswer() API
Definition: Answer.h:24
Definition: Initiator.h:28
bool wantsPreview(const SBuf &urlPath, size_t &wantedSize) const
Definition: ServiceRep.cc:330
std::unique_ptr< SSL_SESSION, HardFun< void, SSL_SESSION *, &SSL_SESSION_free > > SessionStatePointer
Definition: Session.h:55
Counts events, forgetting old ones. Useful for "3 errors/minute" limits.
Definition: FadingCounter.h:15
FadingCounter theSessionFailures
Definition: ServiceRep.h:147
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
NullaryMemFunT< ModXact > Parent
Definition: ServiceRep.h:200
CbcPointer< Adaptation::Initiate > theOptionsFetcher
Definition: ServiceRep.h:132
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 announceStatusChange(const char *downPhrase, bool important) const
Definition: ServiceRep.cc:522
Security::FuturePeerContext tlsContext
Definition: ServiceRep.h:116
Definition: ServiceRep.h:59
Definition: AccessCheck.h:24
Definition: ModXact.h:141
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