summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/IcePackNode.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2004-02-19 16:24:46 +0000
committerBenoit Foucher <benoit@zeroc.com>2004-02-19 16:24:46 +0000
commit46b7c3565ff6785144f1807782276edbc29e5b9d (patch)
treeff73ec6c2cebd4a05ffb1d7527debb9704744bcb /cpp/src/IcePack/IcePackNode.cpp
parentfix (diff)
downloadice-46b7c3565ff6785144f1807782276edbc29e5b9d.tar.bz2
ice-46b7c3565ff6785144f1807782276edbc29e5b9d.tar.xz
ice-46b7c3565ff6785144f1807782276edbc29e5b9d.zip
IcePack fixes
Diffstat (limited to 'cpp/src/IcePack/IcePackNode.cpp')
-rw-r--r--cpp/src/IcePack/IcePackNode.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/IcePack/IcePackNode.cpp b/cpp/src/IcePack/IcePackNode.cpp
index 9bf09710a4f..0ef1bdb3e6d 100644
--- a/cpp/src/IcePack/IcePackNode.cpp
+++ b/cpp/src/IcePack/IcePackNode.cpp
@@ -179,6 +179,11 @@ IcePack::NodeService::start(int argc, char* argv[])
//
properties->setProperty("Ice.ServerIdleTime", "0");
+ if(properties->getPropertyAsIntWithDefault("Ice.ThreadPool.Server.Size", 5) <= 5)
+ {
+ properties->setProperty("Ice.ThreadPool.Server.Size", "5");
+ }
+
//
// Collocate the IcePack registry if we need to.
//
@@ -196,7 +201,7 @@ IcePack::NodeService::start(int argc, char* argv[])
//
if(properties->getPropertyAsInt("IcePack.Node.ThreadPool.Size") == 0)
{
- int size = properties->getPropertyAsIntWithDefault("Ice.ThreadPool.Server.Size", 10);
+ int size = properties->getPropertyAsInt("Ice.ThreadPool.Server.Size");
ostringstream os1;
os1 << static_cast<int>(size / 3);