summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/dispatcher/Client.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2014-11-20 15:04:19 +0100
committerBenoit Foucher <benoit@zeroc.com>2014-11-20 15:04:19 +0100
commit1cdc303164a3b8d0cebb8c0c56a00e6900e8314b (patch)
tree55d142f9e9cb4ed5c4595d40681881f1056d343c /cpp/test/Ice/dispatcher/Client.cpp
parentICE-5936 OSX: failure in test/Glacier2/staticFiltering (diff)
downloadice-1cdc303164a3b8d0cebb8c0c56a00e6900e8314b.tar.bz2
ice-1cdc303164a3b8d0cebb8c0c56a00e6900e8314b.tar.xz
ice-1cdc303164a3b8d0cebb8c0c56a00e6900e8314b.zip
Fixed ICE-5915: reduced TCP send buffer size to not depend on OS buffer size for tests that require send() to block
Diffstat (limited to 'cpp/test/Ice/dispatcher/Client.cpp')
-rw-r--r--cpp/test/Ice/dispatcher/Client.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/test/Ice/dispatcher/Client.cpp b/cpp/test/Ice/dispatcher/Client.cpp
index 62078d91adc..54b4a3ba196 100644
--- a/cpp/test/Ice/dispatcher/Client.cpp
+++ b/cpp/test/Ice/dispatcher/Client.cpp
@@ -34,6 +34,13 @@ main(int argc, char* argv[])
{
Ice::InitializationData initData;
initData.properties = Ice::createProperties(argc, argv);
+
+ //
+ // Limit the send buffer size, this test relies on the socket
+ // send() blocking after sending a given amount of data.
+ //
+ initData.properties->setProperty("Ice.TCP.SndSize", "100000");
+
#ifdef ICE_CPP11
Ice::DispatcherPtr dispatcher = new Dispatcher();
initData.dispatcher = Ice::newDispatcher(