Skip to content
Snippets Groups Projects
Commit 5fa79d1f authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Revert "Temporarily modify time intervals for testing"

This reverts commit 3e969181.
parent 42e27161
Branches
Tags
No related merge requests found
......@@ -801,7 +801,7 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
public Session updateSessionOwnerActivity(final Session session) {
try {
/* Do not clutter CouchDB. Only update once every 3 hours. */
if (session.getLastOwnerActivity() > System.currentTimeMillis() - 60 * 1000) {
if (session.getLastOwnerActivity() > System.currentTimeMillis() - 3 * 3600000) {
return session;
}
......
......@@ -99,8 +99,8 @@ public class SessionService implements ISessionService, ApplicationEventPublishe
}
}
private static final long SESSION_INACTIVITY_CHECK_INTERVAL_MS = 60 * 1000L; // 30 * 60 * 1000L;
private static final long SESSION_INACTIVITY_THRESHOLD_MS = 3 * 60 * 1000L; // 90 * 24 * 60 * 60 * 1000L;
private static final long SESSION_INACTIVITY_CHECK_INTERVAL_MS = 30 * 60 * 1000L;
private static final long SESSION_INACTIVITY_THRESHOLD_MS = 90 * 24 * 60 * 60 * 1000L;
@Autowired
private IDatabaseDao databaseDao;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment