diff options
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); |