typedef UnaryMemFunT<BodyProducer, BodyPipe::Pointer> Parent;
BodyProducerDialer(const BodyProducer::Pointer &aProducer,
- Parent::Method aHandler, BodyPipe::Pointer bp):
- Parent(aProducer, aHandler, bp) {}
+ Parent::Method aHandler, BodyPipe::Pointer bp):
+ Parent(aProducer, aHandler, bp) {}
virtual bool canDial(AsyncCall &call);
};
typedef UnaryMemFunT<BodyConsumer, BodyPipe::Pointer> Parent;
BodyConsumerDialer(const BodyConsumer::Pointer &aConsumer,
- Parent::Method aHandler, BodyPipe::Pointer bp):
- Parent(aConsumer, aHandler, bp) {}
+ Parent::Method aHandler, BodyPipe::Pointer bp):
+ Parent(aConsumer, aHandler, bp) {}
virtual bool canDial(AsyncCall &call);
};
typedef void (C::*Method)(const Params &io);
CommCbMemFunT(const CbcPointer<C> &job, Method meth): JobDialer<C>(job),
- CommDialerParamsT<Params_>(job.get()),
- method(meth) {}
+ CommDialerParamsT<Params_>(job.get()),
+ method(meth) {}
virtual bool canDial(AsyncCall &c) {
return JobDialer<C>::canDial(c) &&
bool operator <(const HttpVersion& that) const {
return (this->major < that.major ||
- this->major == that.major && this->minor < that.minor);
+ this->major == that.major && this->minor < that.minor);
}
bool operator >(const HttpVersion& that) const {
return (this->major > that.major ||
- this->major == that.major && this->minor > that.minor);
+ this->major == that.major && this->minor > that.minor);
}
bool operator <=(const HttpVersion& that) const {
debugs(9,3, HERE << "will write " << buf.contentSize() << " request body bytes");
typedef CommCbMemFunT<ServerStateData, CommIoCbParams> Dialer;
requestSender = JobCallback(93,3,
- Dialer, this, ServerStateData::sentRequestBody);
+ Dialer, this, ServerStateData::sentRequestBody);
comm_write_mbuf(fd, &buf, requestSender);
} else {
debugs(9,3, HERE << "will wait for more request body bytes or eof");
}
adaptedHeadSource = initiateAdaptation(
- new Adaptation::Iterator(vrep, cause, group));
+ new Adaptation::Iterator(vrep, cause, group));
startedAdaptation = initiated(adaptedHeadSource);
Must(startedAdaptation);
}
typedef UnaryMemFunT<Initiator, HttpMsg*> Parent;
AnswerDialer(const Parent::JobPointer &job, Parent::Method meth,
- HttpMsg *msg): Parent(job, meth, msg) { HTTPMSGLOCK(arg1); }
+ HttpMsg *msg): Parent(job, meth, msg) { HTTPMSGLOCK(arg1); }
AnswerDialer(const AnswerDialer &d): Parent(d) { HTTPMSGLOCK(arg1); }
virtual ~AnswerDialer() { HTTPMSGUNLOCK(arg1); }
{
assert(msg);
CallJob(93, 5, __FILE__, __LINE__, "Initiator::noteAdaptationAnswer",
- AnswerDialer(theInitiator, &Initiator::noteAdaptationAnswer, msg));
+ AnswerDialer(theInitiator, &Initiator::noteAdaptationAnswer, msg));
clearInitiator();
}
void Adaptation::Initiate::tellQueryAborted(bool final)
{
CallJobHere1(93, 5, theInitiator,
- Initiator, noteAdaptationQueryAbort, final);
+ Initiator, noteAdaptationQueryAbort, final);
clearInitiator();
}
Adaptation::Iterator::Iterator(
- HttpMsg *aMsg, HttpRequest *aCause,
- const ServiceGroupPointer &aGroup):
+ HttpMsg *aMsg, HttpRequest *aCause,
+ const ServiceGroupPointer &aGroup):
AsyncJob("Iterator"),
Adaptation::Initiate("Iterator"),
theGroup(aGroup),
debugs(93,5, HERE << "using adaptation service: " << service->cfg().key);
theLauncher = initiateAdaptation(
- service->makeXactLauncher(theMsg, theCause));
+ service->makeXactLauncher(theMsg, theCause));
Must(initiated(theLauncher));
Must(!done());
}
Adaptation::Initiate *
Adaptation::Ecap::ServiceRep::makeXactLauncher(HttpMsg *virgin,
- HttpRequest *cause)
+ HttpRequest *cause)
{
Must(up());
XactionRep *rep = new XactionRep(virgin, cause, Pointer(this));
Adaptation::Ecap::XactionRep::XactionRep(
- HttpMsg *virginHeader, HttpRequest *virginCause,
- const Adaptation::ServicePointer &aService):
+ HttpMsg *virginHeader, HttpRequest *virginCause,
+ const Adaptation::ServicePointer &aService):
AsyncJob("Adaptation::Ecap::XactionRep"),
Adaptation::Initiate("Adaptation::Ecap::XactionRep"),
theService(aService),
Adaptation::Icap::Launcher::Launcher(const char *aTypeName,
- Adaptation::ServicePointer &aService):
+ Adaptation::ServicePointer &aService):
AsyncJob(aTypeName),
Adaptation::Initiate(aTypeName),
theService(aService), theXaction(0), theLaunches(0)
inline
std::ostream &
-operator <<(std::ostream &os, const XactAbortInfo &xai) {
+operator <<(std::ostream &os, const XactAbortInfo &xai)
+{
return xai.print(os);
}
}
Adaptation::Icap::ModXact::ModXact(HttpMsg *virginHeader,
- HttpRequest *virginCause, Adaptation::Icap::ServiceRep::Pointer &aService):
+ HttpRequest *virginCause, Adaptation::Icap::ServiceRep::Pointer &aService):
AsyncJob("Adaptation::Icap::ModXact"),
Adaptation::Icap::Xaction("Adaptation::Icap::ModXact", aService),
virginConsumed(0),
state.serviceWaiting = true;
typedef NullaryMemFunT<ModXact> Dialer;
AsyncCall::Pointer call = JobCallback(93,5,
- Dialer, this, Adaptation::Icap::ModXact::noteServiceReady);
+ Dialer, this, Adaptation::Icap::ModXact::noteServiceReady);
service().callWhenReady(call);
}
{
clearAdaptation(theOptionsFetcher);
debugs(93,2, "ICAP probably failed to fetch options (" << e.what() <<
- ")" << status());
+ ")" << status());
handleNewOptions(0);
}
// XXX: "this" here is "self"; works until refcounting API changes
theOptionsFetcher = initiateAdaptation(
- new Adaptation::Icap::OptXactLauncher(this));
+ new Adaptation::Icap::OptXactLauncher(this));
// TODO: timeout in case Adaptation::Icap::OptXact never calls us back?
// Such a timeout should probably be a generic AsyncStart feature.
}
Adaptation::Initiate *
Adaptation::Icap::ServiceRep::makeXactLauncher(HttpMsg *virgin,
- HttpRequest *cause)
+ HttpRequest *cause)
{
return new Adaptation::Icap::ModXactLauncher(virgin, cause, this);
}
//CBDATA_NAMESPACED_CLASS_INIT(Adaptation::Icap, Xaction);
Adaptation::Icap::Xaction::Xaction(const char *aTypeName,
- Adaptation::Icap::ServiceRep::Pointer &aService):
+ Adaptation::Icap::ServiceRep::Pointer &aService):
AsyncJob(aTypeName),
Adaptation::Initiate(aTypeName),
icapRequest(NULL),
// TODO: service bypass status may differ from that of a transaction
typedef CommCbMemFunT<Adaptation::Icap::Xaction, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer timeoutCall = JobCallback(93, 5,
- TimeoutDialer, this, Adaptation::Icap::Xaction::noteCommTimedout);
+ TimeoutDialer, this, Adaptation::Icap::Xaction::noteCommTimedout);
commSetTimeout(connection, TheConfig.connect_timeout(
service().cfg().bypass), timeoutCall);
typedef CommCbMemFunT<Adaptation::Icap::Xaction, CommCloseCbParams> CloseDialer;
closer = JobCallback(93, 5,
- CloseDialer, this, Adaptation::Icap::Xaction::noteCommClosed);
+ CloseDialer, this, Adaptation::Icap::Xaction::noteCommClosed);
comm_add_close_handler(connection, closer);
typedef CommCbMemFunT<Adaptation::Icap::Xaction, CommConnectCbParams> ConnectDialer;
connector = JobCallback(93,3,
- ConnectDialer, this, Adaptation::Icap::Xaction::noteCommConnected);
+ ConnectDialer, this, Adaptation::Icap::Xaction::noteCommConnected);
commConnectStart(connection, s.cfg().host.termedBuf(), s.cfg().port, connector);
}
// comm module will free the buffer
typedef CommCbMemFunT<Adaptation::Icap::Xaction, CommIoCbParams> Dialer;
writer = JobCallback(93,3,
- Dialer, this, Adaptation::Icap::Xaction::noteCommWrote);
+ Dialer, this, Adaptation::Icap::Xaction::noteCommWrote);
comm_write_mbuf(connection, &buf, writer);
updateTimeout();
// TODO: service bypass status may differ from that of a transaction
typedef CommCbMemFunT<Adaptation::Icap::Xaction, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer call = JobCallback(93,5,
- TimeoutDialer, this, Adaptation::Icap::Xaction::noteCommTimedout);
+ TimeoutDialer, this, Adaptation::Icap::Xaction::noteCommTimedout);
commSetTimeout(connection,
TheConfig.io_timeout(service().cfg().bypass), call);
*/
typedef CommCbMemFunT<Adaptation::Icap::Xaction, CommIoCbParams> Dialer;
reader = JobCallback(93,3,
- Dialer, this, Adaptation::Icap::Xaction::noteCommRead);
+ Dialer, this, Adaptation::Icap::Xaction::noteCommRead);
comm_read(connection, commBuf, readBuf.spaceSize(), reader);
updateTimeout();
{
if (theInitiator.set()) {
Adaptation::Icap::XactAbortInfo abortInfo(icapRequest, icapReply,
- retriable(), repeatable());
+ retriable(), repeatable());
Launcher *launcher = dynamic_cast<Launcher*>(theInitiator.get());
// launcher may be nil if initiator is invalid
CallJobHere1(91,5, CbcPointer<Launcher>(launcher),
- Launcher, noteXactAbort, abortInfo);
+ Launcher, noteXactAbort, abortInfo);
clearInitiator();
}
}
debugs(93, 5, typeName << " will delete this, reason: " << stopReason);
CbcPointer<AsyncJob> self(this);
AsyncCall::Pointer fakeCall = asyncCall(93,4, "FAKE-deleteThis",
- JobMemFun(self, &AsyncJob::deleteThis, aReason));
+ JobMemFun(self, &AsyncJob::deleteThis, aReason));
inCall = fakeCall;
callEnd();
// delete fakeCall;
public:
typedef void (Job::*Method)();
explicit NullaryMemFunT(const CbcPointer<Job> &aJob, Method aMethod):
- JobDialer<Job>(aJob), method(aMethod) {}
+ JobDialer<Job>(aJob), method(aMethod) {}
virtual void print(std::ostream &os) const { os << "()"; }
public:
typedef void (Job::*Method)(Argument1);
explicit UnaryMemFunT(const CbcPointer<Job> &aJob, Method aMethod,
- const Argument1 &anArg1): JobDialer<Job>(aJob),
+ const Argument1 &anArg1): JobDialer<Job>(aJob),
method(aMethod), arg1(anArg1) {}
virtual void print(std::ostream &os) const { os << '(' << arg1 << ')'; }
template <class C, class Argument1>
UnaryMemFunT<C, Argument1>
JobMemFun(const CbcPointer<C> &job, typename UnaryMemFunT<C, Argument1>::Method method,
- Argument1 arg1)
+ Argument1 arg1)
{
return UnaryMemFunT<C, Argument1>(job, method, arg1);
}
/**
\ingroup CBDATAAPI
*
- * Safely points to a cbdata-protected class (cbc), such as an AsyncJob.
+ * Safely points to a cbdata-protected class (cbc), such as an AsyncJob.
* When a cbc we communicate with disappears without
* notice or a notice has not reached us yet, this class prevents
* dereferencing the pointer to the gone cbc object.
template <class Cbc>
inline
-std::ostream &operator <<(std::ostream &os, const CbcPointer<Cbc> &p) {
+std::ostream &operator <<(std::ostream &os, const CbcPointer<Cbc> &p)
+{
return p.print(os);
}
}
template <class Cbc>
-std::ostream &CbcPointer<Cbc>::print(std::ostream &os) const {
+std::ostream &CbcPointer<Cbc>::print(std::ostream &os) const
+{
return os << cbc << '/' << lock;
}
typedef CommCbMemFunT<ConnStateData, CommIoCbParams> Dialer;
reader = JobCallback(33, 5,
- Dialer, this, ConnStateData::clientReadRequest);
+ Dialer, this, ConnStateData::clientReadRequest);
comm_read(fd, in.addressToReadInto(), getAvailableBufferLength(), reader);
}
// After sending Transfer-Encoding: chunked (at least), always send
// the last-chunk if there was no error, ignoring responseFinishedOrFailed.
const bool mustSendLastChunk = http->request->flags.chunked_reply &&
- !http->request->flags.stream_error && !context->startOfOutput();
+ !http->request->flags.stream_error && !context->startOfOutput();
if (responseFinishedOrFailed(rep, receivedData) && !mustSendLastChunk) {
context->writeComplete(fd, NULL, 0, COMM_OK);
PROF_stop(clientSocketRecipient);
*/
typedef CommCbMemFunT<ConnStateData, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer timeoutCall = JobCallback(33, 5,
- TimeoutDialer, this, ConnStateData::requestTimeout);
+ TimeoutDialer, this, ConnStateData::requestTimeout);
commSetTimeout(fd, Config.Timeout.persistent_request, timeoutCall);
readSomeData();
typedef CommCbMemFunT<ConnStateData, CommCloseCbParams> Dialer;
AsyncCall::Pointer call = JobCallback(33, 5,
- Dialer, connState, ConnStateData::connStateClosed);
+ Dialer, connState, ConnStateData::connStateClosed);
comm_add_close_handler(newfd, call);
if (Config.onoff.log_fqdn)
typedef CommCbMemFunT<ConnStateData, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer timeoutCall = JobCallback(33, 5,
- TimeoutDialer, connState, ConnStateData::requestTimeout);
+ TimeoutDialer, connState, ConnStateData::requestTimeout);
commSetTimeout(newfd, Config.Timeout.read, timeoutCall);
#if USE_IDENT
newfd, &s->http);
typedef CommCbMemFunT<ConnStateData, CommCloseCbParams> Dialer;
AsyncCall::Pointer call = JobCallback(33, 5,
- Dialer, connState, ConnStateData::connStateClosed);
+ Dialer, connState, ConnStateData::connStateClosed);
comm_add_close_handler(newfd, call);
if (Config.onoff.log_fqdn)
typedef CommCbMemFunT<ConnStateData, CommCloseCbParams> Dialer;
pinning.closeHandler = JobCallback(33, 5,
- Dialer, this, ConnStateData::clientPinnedConnectionClosed);
+ Dialer, this, ConnStateData::clientPinnedConnectionClosed);
comm_add_close_handler(pinning_fd, pinning.closeHandler);
}
#endif
const bool maySendChunkedReply = !request->multipartRangeRequest() &&
- (request->http_ver >= HttpVersion(1, 1));
+ (request->http_ver >= HttpVersion(1, 1));
/* Check whether we should send keep-alive */
if (!Config.onoff.error_pconns && reply->sline.status >= 400 && !request->flags.must_keepalive) {
// Decide if we send chunked reply
if (maySendChunkedReply &&
- request->flags.proxy_keepalive &&
- reply->bodySize(request->method) < 0) {
+ request->flags.proxy_keepalive &&
+ reply->bodySize(request->method) < 0) {
debugs(88, 3, "clientBuildReplyHeader: chunked reply");
request->flags.chunked_reply = 1;
hdr->putStr(HDR_TRANSFER_ENCODING, "chunked");
assert(!virginHeadSource);
assert(!adaptedBodySource);
virginHeadSource = initiateAdaptation(
- new Adaptation::Iterator(request, NULL, g));
+ new Adaptation::Iterator(request, NULL, g));
// we could try to guess whether we can bypass this adaptation
// initiation failure, but it should not really happen
typedef CommCbMemFunT<FtpStateData, CommCloseCbParams> Dialer;
AsyncCall::Pointer closer = JobCallback(9, 5,
- Dialer, this, FtpStateData::ctrlClosed);
+ Dialer, this, FtpStateData::ctrlClosed);
ctrl.opened(theFwdState->server_fd, closer);
if (request->method == METHOD_PUT)
typedef CommCbMemFunT<FtpStateData, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer timeoutCall = JobCallback(9, 5,
- TimeoutDialer, this, FtpStateData::ftpTimeout);
+ TimeoutDialer, this, FtpStateData::ftpTimeout);
commSetTimeout(data.fd, Config.Timeout.read, timeoutCall);
debugs(9,5,HERE << "queueing read on FD " << data.fd);
typedef CommCbMemFunT<FtpStateData, CommIoCbParams> Dialer;
entry->delayAwareRead(data.fd, data.readBuf->space(), read_sz,
- JobCallback(9, 5, Dialer, this, FtpStateData::dataRead));
+ JobCallback(9, 5, Dialer, this, FtpStateData::dataRead));
}
void
if (ignoreErrno(io.xerrno)) {
typedef CommCbMemFunT<FtpStateData, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer timeoutCall = JobCallback(9, 5,
- TimeoutDialer, this, FtpStateData::ftpTimeout);
+ TimeoutDialer, this, FtpStateData::ftpTimeout);
commSetTimeout(io.fd, Config.Timeout.read, timeoutCall);
maybeReadVirginBody();
typedef CommCbMemFunT<FtpStateData, CommIoCbParams> Dialer;
AsyncCall::Pointer call = JobCallback(9, 5,
- Dialer, this, FtpStateData::ftpWriteCommandCallback);
+ Dialer, this, FtpStateData::ftpWriteCommandCallback);
comm_write(ctrl.fd,
ctrl.last_command,
strlen(ctrl.last_command),
/* XXX What about Config.Timeout.read? */
typedef CommCbMemFunT<FtpStateData, CommIoCbParams> Dialer;
AsyncCall::Pointer reader = JobCallback(9, 5,
- Dialer, this, FtpStateData::ftpReadControlReply);
+ Dialer, this, FtpStateData::ftpReadControlReply);
comm_read(ctrl.fd, ctrl.buf + ctrl.offset, ctrl.size - ctrl.offset, reader);
/*
* Cancel the timeout on the Data socket (if any) and
typedef CommCbMemFunT<FtpStateData, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer timeoutCall = JobCallback(9, 5,
- TimeoutDialer, this, FtpStateData::ftpTimeout);
+ TimeoutDialer, this, FtpStateData::ftpTimeout);
commSetTimeout(ctrl.fd, Config.Timeout.read, timeoutCall);
}
*/
typedef CommCbMemFunT<FtpStateData, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer timeoutCall = JobCallback(9, 5,
- TimeoutDialer, ftpState, FtpStateData::ftpTimeout);
+ TimeoutDialer, ftpState, FtpStateData::ftpTimeout);
commSetTimeout(ftpState->data.fd, 15, timeoutCall);
}
/* we are ony accepting once, so need to re-open the listener socket. */
typedef CommCbMemFunT<FtpStateData, CommAcceptCbParams> acceptDialer;
AsyncCall::Pointer acceptCall = JobCallback(11, 5,
- acceptDialer, this, FtpStateData::ftpAcceptDataConnection);
+ acceptDialer, this, FtpStateData::ftpAcceptDataConnection);
data.listener = new Comm::ListenStateData(data.fd, acceptCall, false);
return;
}
typedef CommCbMemFunT<FtpStateData, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer timeoutCall = JobCallback(9, 5,
- TimeoutDialer, this, FtpStateData::ftpTimeout);
+ TimeoutDialer, this, FtpStateData::ftpTimeout);
commSetTimeout(data.fd, Config.Timeout.read, timeoutCall);
/*\todo XXX We should have a flag to track connect state...
typedef CommCbMemFunT<FtpStateData, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer timeoutCall = JobCallback(9, 5,
- TimeoutDialer, this, FtpStateData::ftpTimeout);
+ TimeoutDialer, this, FtpStateData::ftpTimeout);
commSetTimeout(data.fd, Config.Timeout.read, timeoutCall);
debugs(9, 3, "ftpReadStor: accepting data channel");
typedef CommCbMemFunT<FtpStateData, CommAcceptCbParams> acceptDialer;
AsyncCall::Pointer acceptCall = JobCallback(11, 5,
- acceptDialer, this, FtpStateData::ftpAcceptDataConnection);
+ acceptDialer, this, FtpStateData::ftpAcceptDataConnection);
data.listener = new Comm::ListenStateData(data.fd, acceptCall, false);
} else {
/* Accept data channel */
typedef CommCbMemFunT<FtpStateData, CommAcceptCbParams> acceptDialer;
AsyncCall::Pointer acceptCall = JobCallback(11, 5,
- acceptDialer, ftpState, FtpStateData::ftpAcceptDataConnection);
+ acceptDialer, ftpState, FtpStateData::ftpAcceptDataConnection);
ftpState->data.listener = new Comm::ListenStateData(ftpState->data.fd, acceptCall, false);
/*
typedef CommCbMemFunT<FtpStateData, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer timeoutCall = JobCallback(9, 5,
- TimeoutDialer, ftpState,FtpStateData::ftpTimeout);
+ TimeoutDialer, ftpState,FtpStateData::ftpTimeout);
commSetTimeout(ftpState->data.fd, Config.Timeout.read, timeoutCall);
return;
} else if (!ftpState->flags.tried_nlst && code > 300) {
/* Accept data channel */
typedef CommCbMemFunT<FtpStateData, CommAcceptCbParams> acceptDialer;
AsyncCall::Pointer acceptCall = JobCallback(11, 5,
- acceptDialer, ftpState, FtpStateData::ftpAcceptDataConnection);
+ acceptDialer, ftpState, FtpStateData::ftpAcceptDataConnection);
ftpState->data.listener = new Comm::ListenStateData(ftpState->data.fd, acceptCall, false);
/*
* Cancel the timeout on the Control socket and establish one
typedef CommCbMemFunT<FtpStateData, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer timeoutCall = JobCallback(9, 5,
- TimeoutDialer, ftpState,FtpStateData::ftpTimeout);
+ TimeoutDialer, ftpState,FtpStateData::ftpTimeout);
commSetTimeout(ftpState->data.fd, Config.Timeout.read, timeoutCall);
} else if (code >= 300) {
if (!ftpState->flags.try_slash_hack) {
*/
typedef CommCbMemFunT<HttpStateData, CommCloseCbParams> Dialer;
closeHandler = JobCallback(9, 5,
- Dialer, this, HttpStateData::httpStateConnClosed);
+ Dialer, this, HttpStateData::httpStateConnClosed);
comm_add_close_handler(fd, closeHandler);
}
flags.do_next_read = 0;
typedef CommCbMemFunT<HttpStateData, CommIoCbParams> Dialer;
entry->delayAwareRead(fd, readBuf->space(read_size), read_size,
- JobCallback(11, 5, Dialer, this, HttpStateData::readReply));
+ JobCallback(11, 5, Dialer, this, HttpStateData::readReply));
}
}
*/
typedef CommCbMemFunT<HttpStateData, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer timeoutCall = JobCallback(11, 5,
- TimeoutDialer, this, HttpStateData::httpTimeout);
+ TimeoutDialer, this, HttpStateData::httpTimeout);
commSetTimeout(fd, Config.Timeout.read, timeoutCall);
typedef CommCbMemFunT<HttpStateData, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer timeoutCall = JobCallback(11, 5,
- TimeoutDialer, this, HttpStateData::httpTimeout);
+ TimeoutDialer, this, HttpStateData::httpTimeout);
commSetTimeout(fd, Config.Timeout.lifetime, timeoutCall);
flags.do_next_read = 1;
maybeReadVirginBody();
return false;
typedef CommCbMemFunT<HttpStateData, CommIoCbParams> Dialer;
requestSender = JobCallback(11,5,
- Dialer, this, HttpStateData::sentRequestBody);
+ Dialer, this, HttpStateData::sentRequestBody);
} else {
assert(!requestBodySource);
typedef CommCbMemFunT<HttpStateData, CommIoCbParams> Dialer;
requestSender = JobCallback(11,5,
- Dialer, this, HttpStateData::sendComplete);
+ Dialer, this, HttpStateData::sendComplete);
}
if (_peer != NULL) {
typedef CommCbMemFunT<HttpStateData, CommIoCbParams> Dialer;
AsyncCall::Pointer call = JobCallback(11,5,
- Dialer, this, HttpStateData::sendComplete);
+ Dialer, this, HttpStateData::sendComplete);
comm_write(fd, "\r\n", 2, call);
}
return;
buf.prepForReading();
typedef CommCbMemFunT<Port, CommIoCbParams> Dialer;
AsyncCall::Pointer readHandler = JobCallback(54, 6,
- Dialer, this, Port::noteRead);
+ Dialer, this, Port::noteRead);
comm_read(fd(), buf.raw(), buf.size(), readHandler);
}
debugs(54, 5, HERE);
typedef CommCbMemFunT<UdsSender, CommIoCbParams> Dialer;
AsyncCall::Pointer writeHandler = JobCallback(54, 5,
- Dialer, this, UdsSender::wrote);
+ Dialer, this, UdsSender::wrote);
comm_write(fd(), message.raw(), message.size(), writeHandler);
writing = true;
}