helper.h
Go to the documentation of this file.
174 friend void helperStatefulSubmit(const statefulhelper::Pointer &, const char *buf, HLPCB *, void *cbData, const Helper::ReservationId &);
181 void submit(const char *buf, HLPCB * callback, void *data, const Helper::ReservationId & reservation);
182 bool trySubmit(const char *buf, HLPCB * callback, void *data, const Helper::ReservationId & reservation);
337 void helperStatefulSubmit(const statefulhelper::Pointer &, const char *buf, HLPCB *, void *cbData, uint64_t reservation);
Definition: wordlist.h:41
Definition: ChildConfig.h:21
Definition: Client.h:29
helper_stateful_server * findServer(const Helper::ReservationId &reservation)
Definition: helper.cc:633
Definition: cbdata.h:275
Definition: Request.h:20
void handleFewerServers(bool madeProgress)
Definition: helper.cc:908
struct Helper::SessionBase::_helper_flags flags
Definition: helper.h:154
~helper_stateful_server() override
Definition: helper.cc:171
Definition: helper.h:132
void packStatsInto(Packable *p, const char *label=nullptr) const
Dump some stats about the helper state to a Packable object.
Definition: helper.cc:694
Definition: helper.h:262
Definition: InstanceId.h:46
bool trySubmit(const char *buf, HLPCB *callback, void *data)
If possible, submit request. Otherwise, either kill Squid or return false.
Definition: helper.cc:553
void callBack(Xaction &)
sends transaction response to the transaction initiator
Definition: helper.cc:572
static void requestTimeout(const CommTimeoutCbParams &io)
Read timeout handler.
Definition: helper.cc:1601
CBDATA_CHILD(helper_stateful_server)
std::unordered_map< Helper::ReservationId, helper_stateful_server * > Reservations
Definition: helper.h:158
Definition: Packable.h:52
void submit(const char *buf, HLPCB *callback, void *data, const Helper::ReservationId &reservation)
Definition: helper.cc:664
void cancelReservation(const Helper::ReservationId reservation)
undo reserveServer(), clear the reservation and kick the queue
Definition: helper.cc:617
void helperStatefulShutdown(const statefulhelper::Pointer &)
Definition: helper.cc:808
bool reserved() override
whether the server is locked for exclusive use by a client
Definition: helper.h:300
void checkForTimedOutRequests(bool const retry)
Definition: helper.cc:1563
bool ignoreToEom
Whether to ignore current message, because it is timed-out or other reason.
Definition: helper.h:281
bool reserved() override
whether the server is locked for exclusive use by a client
Definition: helper.h:323
Definition: MemBuf.h:23
Definition: dlink.h:14
static void HelperServerClosed(SessionBase *)
close handler to handle exited server processes
Definition: helper.cc:928
struct Helper::Client::_stats stats
struct Helper::SessionBase::@60 stats
Definition: Reply.h:29
void submit(const char *buf, HLPCB *callback, void *data)
dispatches or enqueues a helper requests; does not enforce queue limits
Definition: helper.cc:564
CBDATA_CHILD(Session)
void helperSubmit(const Helper::Client::Pointer &, const char *buf, HLPCB *, void *cbData)
Definition: helper.cc:480
a (temporary) lock on a (stateful) helper channel
Definition: ReservationId.h:17
Definition: helper.h:66
Definition: helper.h:313
Definition: dlink.h:23
virtual void dropQueued()
dequeues and sends an Unknown answer to all queued requests
Definition: helper.cc:122
bool trySubmit(const char *buf, HLPCB *callback, void *data, const Helper::ReservationId &reservation)
reserved servers indexed by reservation IDs
Definition: helper.cc:594
std::map< uint64_t, Requests::iterator > RequestIndex
Definition: helper.h:284
virtual bool reserved()=0
whether the server is locked for exclusive use by a client
Definition: CommCalls.h:133
void dropQueued() override
dequeues and sends an Unknown answer to all queued requests
Definition: helper.cc:165
friend void helperStatefulSubmit(const statefulhelper::Pointer &, const char *buf, HLPCB *, void *cbData, const Helper::ReservationId &)
Definition: helper.cc:586
MEMPROXY_CLASS(Helper::Xaction)
void helperStatefulSubmit(const statefulhelper::Pointer &, const char *buf, HLPCB *, void *cbData, uint64_t reservation)
~statefulhelper() override=default
void syncQueueStats()
synchronizes queue-dependent measurements with the current queue state
Definition: helper.cc:499
Definition: Address.h:42
Definition: helper.h:241
bool queueFull() const
whether queuing an additional request would overload the helper
Definition: helper.cc:488
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