提交 b9337c2d authored 作者: Thomas Mueller's avatar Thomas Mueller

H2 Console: the session timeout can now be configured using the system property…

H2 Console: the session timeout can now be configured using the system property "h2.consoleTimeout".
上级 4b0ce7b8
......@@ -18,7 +18,8 @@ Change Log
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>Issue 431: Improved compatibility with MySQL: support for
<ul><li>H2 Console: the session timeout can now be configured using the system property "h2.consoleTimeout".
</li><li>Issue 431: Improved compatibility with MySQL: support for
"ENGINE=InnoDB charset=UTF8" when creating a table.
</li><li>Issue 249: Improved compatiblity with MySQL in the MySQL mode:
now the methods DatabaseMetaData methods stores*Case*Identifiers return the same as MySQL
......
......@@ -144,6 +144,12 @@ public class SysProperties {
*/
public static final boolean CONSOLE_STREAM = Utils.getProperty("h2.consoleStream", true);
/**
* System property <code>h2.consoleTimeout</code> (default: 1800000).<br />
* H2 Console: session timeout in milliseconds. The default is 30 minutes.
*/
public static final int CONSOLE_TIMEOUT = Utils.getProperty("h2.consoleTimeout", 30 * 60 * 1000);
/**
* System property <code>h2.dataSourceTraceLevel</code> (default: 1).<br />
* The trace level of the data source implementation. Default is 1 for
......
......@@ -99,9 +99,9 @@ public class WebServer implements Service {
private static int ticker;
/**
* The session timeout is 30 min.
* The session timeout (the default is 30 minutes).
*/
private static final long SESSION_TIMEOUT = 30 * 60 * 1000;
private static final long SESSION_TIMEOUT = SysProperties.CONSOLE_TIMEOUT;
// public static void main(String... args) throws IOException {
// String s = IOUtils.readStringAndClose(new java.io.FileReader(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论