summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/timeout/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/timeout/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/timeout/Client.cpp')
-rw-r--r--cpp/test/Ice/timeout/Client.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/test/Ice/timeout/Client.cpp b/cpp/test/Ice/timeout/Client.cpp
index 203ac9ce2cf..8f721ced652 100644
--- a/cpp/test/Ice/timeout/Client.cpp
+++ b/cpp/test/Ice/timeout/Client.cpp
@@ -52,6 +52,12 @@ main(int argc, char* argv[])
//
initData.properties->setProperty("Ice.MessageSizeMax", "20000");
+ //
+ // 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");
+
communicator = Ice::initialize(argc, argv, initData);
status = run(argc, argv, communicator);
}