diff options
-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; } } |