summaryrefslogtreecommitdiff
path: root/cpp/demo/IceGrid/allocate/Client.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-06-23 12:33:16 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-06-23 12:33:16 +0000
commit919eb15e5330fae132e53b795941ea4d080d1783 (patch)
treee966f7eae52ead12155e0255b59cb63fdb2bf03d /cpp/demo/IceGrid/allocate/Client.cpp
parentMoved getTimeout method to IceGrid::Registry interface for consistency with (diff)
downloadice-919eb15e5330fae132e53b795941ea4d080d1783.tar.bz2
ice-919eb15e5330fae132e53b795941ea4d080d1783.tar.xz
ice-919eb15e5330fae132e53b795941ea4d080d1783.zip
Bug 1127
Diffstat (limited to 'cpp/demo/IceGrid/allocate/Client.cpp')
-rw-r--r--cpp/demo/IceGrid/allocate/Client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/demo/IceGrid/allocate/Client.cpp b/cpp/demo/IceGrid/allocate/Client.cpp
index 93b7b664198..4081b26bff3 100644
--- a/cpp/demo/IceGrid/allocate/Client.cpp
+++ b/cpp/demo/IceGrid/allocate/Client.cpp
@@ -18,9 +18,9 @@ class SessionKeepAliveThread : public IceUtil::Thread, public IceUtil::Monitor<I
{
public:
- SessionKeepAliveThread(const IceGrid::SessionPrx& session) :
+ SessionKeepAliveThread(const IceGrid::SessionPrx& session, long timeout) :
_session(session),
- _timeout(IceUtil::Time::seconds(5)),
+ _timeout(IceUtil::Time::seconds(timeout)),
_destroy(false)
{
}
@@ -143,7 +143,7 @@ HelloClient::run(int argc, char* argv[])
}
}
- SessionKeepAliveThreadPtr keepAlive = new SessionKeepAliveThread(session);
+ SessionKeepAliveThreadPtr keepAlive = new SessionKeepAliveThread(session, registry->getSessionTimeout() / 2);
keepAlive->start();
//