summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-07-19 16:03:04 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-07-19 16:03:04 +0100
commit9424fea48bc174ee76d0e29e938f349a2fffaa27 (patch)
treedb57117190fd7f0d69355e0680a1da827c080a5d
parentClassify test cases into their own files (diff)
downloadnetfs-9424fea48bc174ee76d0e29e938f349a2fffaa27.tar.bz2
netfs-9424fea48bc174ee76d0e29e938f349a2fffaa27.tar.xz
netfs-9424fea48bc174ee76d0e29e938f349a2fffaa27.zip
Enable router heartbeats
-rw-r--r--netfs/fuse/fuseApp.cpp4
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;
}
}