$(DISK_LIBS) \
$(DISK_OS_LIBS) \
acl/libapi.la \
+ comm/libcomm.la \
$(top_builddir)/lib/libmisccontainers.la \
$(top_builddir)/lib/libmiscencoding.la \
$(top_builddir)/lib/libmiscutil.la \
actionName << "'" );
if (UsingSmp() && IamWorkerProcess()) {
- AsyncJob::Start(new Mgr::Forwarder(fd, cmd->params, request, entry));
+ AsyncJob::Start(new Mgr::Forwarder(client, cmd->params, request, entry));
return;
}
ConnStateData::swanSong()
{
debugs(33, 2, HERE << clientConn);
- clientConn = NULL;
flags.readMoreRequests = false;
clientdbEstablished(clientConn->remote, -1); /* decrement */
+ clientConn = NULL;
assert(areAllContextsForThisConnection());
freeAllContexts();
}
assert(Comm::IsConnOpen(clientConn));
- assert(io.conn == clientConn);
+ assert(io.conn->fd == clientConn->fd);
/*
* Don't reset the timeout value here. The timeout value will be
http->logType = LOG_TCP_HIT;
ErrorState *const err =
clientBuildError(ERR_PRECONDITION_FAILED, HTTP_PRECONDITION_FAILED,
- NULL, http->getConn()->peer, http->request);
+ NULL, http->getConn()->clientConn->remote, http->request);
removeClientStoreReference(&sc, http);
HTTPMSGUNLOCK(reply);
startError(err);
#endif
commSetSelect(fd, COMM_SELECT_WRITE, commHandleWrite, ccb, 0);
->>>>>>> MERGE-SOURCE
}
#include "hier_code.h"
#include "ip/Address.h"
#include "RefCount.h"
+#include "typedefs.h"
#if HAVE_IOSFWD
#include <iosfwd>
#include "squid.h"
#include "acl/FilledChecklist.h"
#include "acl/Gadgets.h"
+#include "CacheManager.h"
#include "comm/Connection.h"
#include "comm/ConnOpener.h"
#include "CommCalls.h"
}
#if SO_MARK
serverDestinations[0]->nfmark = GetNfmarkToServer(request);
- debugs(17, 3, "fwdConnectStart: got outgoing addr " << outgoing << ", tos " << int(tos)
+ debugs(17, 3, "fwdConnectStart: got outgoing addr " << serverDestinations[0]->local << ", tos " << int(serverDestinations[0]->tos)
<< ", netfilter mark " << serverDestinations[0]->nfmark);
#else
serverDestinations[0]->nfmark = 0;
- debugs(17, 3, "fwdConnectStart: got outgoing addr " << outgoing << ", tos " << int(tos));
+ debugs(17, 3, "fwdConnectStart: got outgoing addr " << serverDestinations[0]->local << ", tos " << int(serverDestinations[0]->tos));
#endif
AsyncCall::Pointer call = commCbCall(17,3, "fwdConnectDoneWrapper", CommConnectCbPtrFun(fwdConnectDoneWrapper, this));
{
ServerStateData::handleRequestBodyProducerAborted();
if (entry->isEmpty()) {
- debugs(11, 3, "request body aborted: FD " << fd);
+ debugs(11, 3, "request body aborted: " << serverConnection);
ErrorState *err;
err = errorCon(ERR_READ_ERROR, HTTP_BAD_GATEWAY, fwd->request);
err->xerrno = errno;
debugs(12, DBG_CRITICAL, "Sending ICP messages from " << icpOutgoingConn->local);
commSetSelect(icpOutgoingConn->fd, COMM_SELECT_READ, icpHandleUdp, NULL, 0);
- fd_note(theOutIcpConnection, "Outgoing ICP socket");
+ fd_note(icpOutgoingConn->fd, "Outgoing ICP socket");
icpGetOutgoingIpAddress();
}
}
icpGetOutgoingIpAddress()
{
struct addrinfo *xai = NULL;
- theOutICPAddr.SetEmpty();
+ theIcpPrivateHostID.SetEmpty();
theIcpPrivateHostID.InitAddrInfo(xai);
if (getsockname(icpOutgoingConn->fd, xai->ai_addr, &xai->ai_addrlen) < 0)
debugs(50, DBG_IMPORTANT, "ERROR: Unable to identify ICP host ID to use for " << icpOutgoingConn
#include "config.h"
#include "base/Subscription.h"
#include "base/TextException.h"
+#include "CacheManager.h"
#include "comm.h"
#include "comm/Connection.h"
#include "ipc/Coordinator.h"
#include "mgr/Response.h"
#include "mgr/StoreToCommWriter.h"
-
CBDATA_NAMESPACED_CLASS_INIT(Ipc, Coordinator);
Ipc::Coordinator* Ipc::Coordinator::TheInstance = NULL;
Mgr::Action::Pointer action =
CacheManager::GetInstance()->createRequestedAction(request.params);
- AsyncJob::Start(new Mgr::Inquirer(action,
- Mgr::ImportHttpFdIntoComm(request.fd), request, strands_));
+ Comm::ConnectionPointer ir = Mgr::ImportHttpFdIntoComm(request.fd);
+ AsyncJob::Start(new Mgr::Inquirer(action, ir, request, strands_));
}
void
#define SQUID_IPC_SHARED_LISTEN_H
#include "base/AsyncCall.h"
+#include "base/Subscription.h"
namespace Ipc
{
{
fatal ("Not implemented");
}
-
-ConnectionDetail::ConnectionDetail() : me(), peer()
-{
- fatal ("Not implemented");
-}