summaryrefslogtreecommitdiffstats
path: root/remoting/host/remoting_me2me_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/remoting_me2me_host.cc')
-rw-r--r--remoting/host/remoting_me2me_host.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index c0b457a..47c8e03 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -390,6 +390,11 @@ class HostProcess
CreateHostSessionManager(network_settings,
context_->url_request_context_getter()));
+ // TODO(simonmorris): Get the maximum session duration from a policy.
+#if defined(OS_LINUX)
+ host_->SetMaximumSessionDuration(base::TimeDelta::FromHours(20));
+#endif
+
heartbeat_sender_.reset(new HeartbeatSender(
this, host_id_, signal_strategy_.get(), &key_pair_));