sessions: decrease session ping frequency

This commit is contained in:
Adam
2018-03-12 08:12:10 -04:00
parent 0c924341c0
commit 1856a5f1a1
2 changed files with 2 additions and 2 deletions

View File

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

View File

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