提交 2d662333 authored 作者: Thomas Mueller's avatar Thomas Mueller

Issue 417: H2 Console: the web session timeout didn't work, resulting in a memory leak.

上级 e351cbde
......@@ -215,8 +215,7 @@ public class WebServer implements Service {
if (lastTimeoutCheck + SESSION_TIMEOUT < now) {
for (String id : New.arrayList(sessions.keySet())) {
WebSession session = sessions.get(id);
Long last = (Long) session.get("lastAccess");
if (last != null && last.longValue() + SESSION_TIMEOUT < now) {
if (session.lastAccess + SESSION_TIMEOUT < now) {
trace("timeout for " + id);
sessions.remove(id);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论