summaryrefslogtreecommitdiff
path: root/py/config/TestUtil.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2005-09-28 20:12:21 +0000
committerMark Spruiell <mes@zeroc.com>2005-09-28 20:12:21 +0000
commitf2068a90ddca72da5071c53468642d35a14e17f3 (patch)
treef20872b5a4fa14f479b1a3b5da36a01265df1db3 /py/config/TestUtil.py
parentminor typo (diff)
downloadice-f2068a90ddca72da5071c53468642d35a14e17f3.tar.bz2
ice-f2068a90ddca72da5071c53468642d35a14e17f3.tar.xz
ice-f2068a90ddca72da5071c53468642d35a14e17f3.zip
adding thread-per-connection
Diffstat (limited to 'py/config/TestUtil.py')
-rw-r--r--py/config/TestUtil.py24
1 files changed, 18 insertions, 6 deletions
diff --git a/py/config/TestUtil.py b/py/config/TestUtil.py
index c8bcfaa4a5d..d554a513497 100644
--- a/py/config/TestUtil.py
+++ b/py/config/TestUtil.py
@@ -25,14 +25,21 @@ protocol = ""
compress = 1
#
-# Set the host to the host name the test servers are running on. If
-# not set, Ice will try to find out the IP address for the
-# hostname. If you DNS isn't set up propertly, you should therefore
-# use "localhost".
+# Set threadPerConnection to 1 in case you want to run the tests in
+# thread per connection mode.
#
-#host = "someotherhost"
-host = "localhost"
+threadPerConnection = 0
+#threadPerConnection = 1
+
+#
+# If you don't set "host" below, then the Ice library will try to find
+# out the IP address of this host. For the Ice test suite, it's best
+# to set the IP address explicitly to 127.0.0.1. This avoid problems
+# with incorrect DNS or hostname setups.
+#
+
+host = "127.0.0.1"
#
# Don't change anything below this line!
@@ -213,6 +220,11 @@ if compress:
serverProtocol += " --Ice.Override.Compress"
clientServerProtocol += " --Ice.Override.Compress"
+if threadPerConnection:
+ clientProtocol += " --Ice.ThreadPerConnection"
+ serverProtocol += " --Ice.ThreadPerConnection"
+ clientServerProtocol += " --Ice.ThreadPerConnection"
+
if host != "":
defaultHost = " --Ice.Default.Host=" + host
else: