Increase session ping time to 10 minutes

This commit is contained in:
Adam
2018-12-09 20:59:11 -05:00
parent 2f122e19df
commit e3c84db8aa
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ public class SessionService
{ {
try (Connection con = sql2o.open()) try (Connection con = sql2o.open())
{ {
con.createQuery("delete from session where last + interval 5 minute < current_timestamp()") con.createQuery("delete from session where last + interval 11 minute < current_timestamp()")
.executeUpdate(); .executeUpdate();
} }
} }

View File

@@ -63,7 +63,7 @@ public class ClientSessionManager
log.warn("error opening session", ex); log.warn("error opening session", ex);
} }
scheduledFuture = executorService.scheduleWithFixedDelay(this::ping, 1, 4, TimeUnit.MINUTES); scheduledFuture = executorService.scheduleWithFixedDelay(this::ping, 1, 10, TimeUnit.MINUTES);
} }
public void shutdown() public void shutdown()