ConnOpener.h
Go to the documentation of this file.
33 ConnOpener(const Comm::ConnectionPointer &, const AsyncCall::Pointer &handler, time_t connect_timeout);
void retrySleep()
Close and wait a little before trying to open and connect again.
Definition: ConnOpener.cc:397
Definition: AsyncJob.h:31
void sendAnswer(Comm::Flag errFlag, int xerrno, const char *why)
Definition: ConnOpener.cc:122
ConnOpener(const Comm::ConnectionPointer &, const AsyncCall::Pointer &handler, time_t connect_timeout)
Definition: ConnOpener.cc:32
Definition: ConnOpener.h:24
Definition: AsyncJob.h:17
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition: AcceptLimiter.h:16
static void DelayedConnectRetry(void *data)
Definition: ConnOpener.cc:490
int totalTries_
total number of connection attempts over all destinations so far.
Definition: ConnOpener.h:73
struct Comm::ConnOpener::Calls calls_
AsyncCall::Pointer callback_
handler to be called on connection completion.
Definition: ConnOpener.h:71
int temporaryFd_
the FD being opened. Do NOT set conn_->fd until it is fully open.
Definition: ConnOpener.h:69
ConnOpener & operator=(const ConnOpener &c)
void restart()
called at the end of Comm::ConnOpener::DelayedConnectRetry event
Definition: ConnOpener.cc:266
Definition: CommCalls.h:133
Definition: CommCalls.h:127
CBDATA_CHILD(ConnOpener)
time_t deadline_
if we are not done by then, we will call back with Comm::TIMEOUT
Definition: ConnOpener.h:77
static void InProgressConnectRetry(int fd, void *data)
Definition: ConnOpener.cc:472
void keepFd()
cleans I/O state and moves temporaryFd_ to the conn_ for long-term use
Definition: ConnOpener.cc:238
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