connector = JobCallback(93,3, ConnectDialer, this, Adaptation::Icap::Xaction::noteCommConnected);
cs = new Comm::ConnOpener(connection, connector, TheConfig.connect_timeout(service().cfg().bypass));
cs->setHost(s.cfg().host.termedBuf());
- AsyncJob::Start(cs);
+ AsyncJob::Start(cs.get());
}
/*
void Adaptation::Icap::Xaction::swanSong()
{
// kids should sing first and then call the parent method.
- if (cs) {
+ if (cs.valid()) {
debugs(93,6, HERE << id << " about to notify ConnOpener!");
CallJobHere(93, 3, cs, Comm::ConnOpener, noteAbort);
cs = NULL;
#include "AccessLogEntry.h"
#include "adaptation/icap/ServiceRep.h"
#include "adaptation/Initiate.h"
+#include "comm/ConnOpener.h"
#include "comm/forward.h"
#include "CommCalls.h"
#include "HttpReply.h"
timeval icap_tio_finish; /*time when the last byte of the ICAP responsewas received*/
private:
- Comm::ConnOpener *cs;
+ Comm::ConnOpener::Pointer cs;
AsyncCall::Pointer securer; ///< whether we are securing a connection
};