diff options
author | Gordon Sim <gsim@apache.org> | 2007-08-13 09:41:45 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-08-13 09:41:45 +0000 |
commit | f458ec7b59e6c03f59e8b33474bbe70f9a9873dc (patch) | |
tree | 5b750882fbaf54fe42ded428c76967f70ed55b3f /cpp/lib/client/Connector.cpp | |
parent | 2553b54071b2ab89faaf503e3c3c8449fed07070 (diff) | |
download | qpid-python-f458ec7b59e6c03f59e8b33474bbe70f9a9873dc.tar.gz |
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
Diffstat (limited to 'cpp/lib/client/Connector.cpp')
-rw-r--r-- | cpp/lib/client/Connector.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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); |