From f458ec7b59e6c03f59e8b33474bbe70f9a9873dc Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 13 Aug 2007 09:41:45 +0000 Subject: Fixes for QPID-544 and QPID-548 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@565284 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/lib/client/Connector.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpp/lib/client/Connector.cpp') diff --git a/cpp/lib/client/Connector.cpp b/cpp/lib/client/Connector.cpp index c57b3d6dc4..a99360b840 100644 --- a/cpp/lib/client/Connector.cpp +++ b/cpp/lib/client/Connector.cpp @@ -44,8 +44,11 @@ Connector::Connector(const qpid::framing::ProtocolVersion& pVersion, bool _debug Connector::~Connector(){ } -void Connector::connect(const std::string& host, int port){ +void Connector::connect(const std::string& host, int port, bool tcpNoDelay){ socket = Socket::createTcp(); + if (tcpNoDelay) { + socket.setTcpNoDelay(true); + } socket.connect(host, port); closed = false; receiver = Thread(this); -- cgit v1.2.1