Skip to content

Commit ea0c686

Browse files
committed
更改session清理时间为过期时间的一半
1 parent 1991c38 commit ea0c686

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/eh/core/http/EHServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void startServer() throws IOException {
7878
.get(Constants.SESSION_TIMEOUT));
7979
log.info("Initializing SessionCleanTask,the session_out_time is " + session_timeout * 2
8080
+ " minute.");
81-
timer.schedule(sessionCleanTask, new Date(), session_timeout * 60 * 2 * 1000);
81+
timer.schedule(sessionCleanTask, new Date(), session_timeout * 30 * 1000);
8282

8383
// 启动服务器
8484
HttpServerProvider provider = HttpServerProvider.provider();

0 commit comments

Comments
 (0)