change default session timeout to 30min. close #342

This commit is contained in:
hengyunabc committed 2019-02-08 15:18:06 +08:00
1 parent 4eb0eec182
commit ec7c5aea33
3 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -35,8 +35,8 @@ TELNET_PORT="3658"
# http port # http port
HTTP_PORT="8563" HTTP_PORT="8563"
# telnet session timeout seconds, default 300 # telnet session timeout seconds, default 1800
SESSION_TIMEOUT=300 SESSION_TIMEOUT=1800
# use specify version # use specify version
USE_VERSION= USE_VERSION=
@@ -398,7 +398,7 @@ Options and Arguments:
--target-ip <value> The target jvm listen ip, default 127.0.0.1 --target-ip <value> The target jvm listen ip, default 127.0.0.1
--telnet-port <value> The target jvm listen telnet port, default 3658 --telnet-port <value> The target jvm listen telnet port, default 3658
--http-port <value> The target jvm listen http port, default 8563 --http-port <value> The target jvm listen http port, default 8563
--session-timeout <value> The session timeout seconds, default 300 --session-timeout <value> The session timeout seconds, default 1800 (30min)
--arthas-home <value> The arthas home --arthas-home <value> The arthas home
--use-version <value> Use special version arthas --use-version <value> Use special version arthas
--repo-mirror <value> Use special maven repository mirror, value is --repo-mirror <value> Use special maven repository mirror, value is
@@ -135,7 +135,7 @@ public class Bootstrap {
} }
@Option(longName = "session-timeout") @Option(longName = "session-timeout")
@Description("The session timeout seconds, default 300") @Description("The session timeout seconds, default 1800 (30min)")
public void setSessionTimeout(Long sessionTimeout) { public void setSessionTimeout(Long sessionTimeout) {
this.sessionTimeout = sessionTimeout; this.sessionTimeout = sessionTimeout;
} }
@@ -19,7 +19,7 @@ public class ShellServerOptions {
/** /**
* Default time, in ms, that a shell session lasts for without being accessed before expiring. * Default time, in ms, that a shell session lasts for without being accessed before expiring.
*/ */
public static final long DEFAULT_SESSION_TIMEOUT = 5 * 60 * 1000; // 5 minutes public static final long DEFAULT_SESSION_TIMEOUT = 30 * 60 * 1000; // 30 minutes
/** /**
* Default time, in ms, that a server waits for a client to connect * Default time, in ms, that a server waits for a client to connect