diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-07-19 16:03:04 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-07-19 16:03:04 +0100 |
commit | 9424fea48bc174ee76d0e29e938f349a2fffaa27 (patch) | |
tree | db57117190fd7f0d69355e0680a1da827c080a5d | |
parent | Classify test cases into their own files (diff) | |
download | netfs-9424fea48bc174ee76d0e29e938f349a2fffaa27.tar.bz2 netfs-9424fea48bc174ee76d0e29e938f349a2fffaa27.tar.xz netfs-9424fea48bc174ee76d0e29e938f349a2fffaa27.zip |
Enable router heartbeats
-rw-r--r-- | netfs/fuse/fuseApp.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/netfs/fuse/fuseApp.cpp b/netfs/fuse/fuseApp.cpp index 0e7f941..3531f88 100644 --- a/netfs/fuse/fuseApp.cpp +++ b/netfs/fuse/fuseApp.cpp @@ -85,6 +85,10 @@ NetFS::FuseApp::connectSession() Lock(_lock); auto router = Glacier2::RouterPrx::checkedCast(ic->getDefaultRouter()); session = router->createSession("", ""); + if (int acmTimeout = router->getACMTimeout() > 0) { + Ice::ConnectionPtr conn = router->ice_getCachedConnection(); + conn->setACM(acmTimeout, IceUtil::None, Ice::HeartbeatAlways); + } sessionOpened = true; } } |