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

Temporarily modify time intervals for testing

parent ea9fe6e0
1 merge request!36Delete inactive guest sessions
Pipeline #5386 passed with stages
in 2 minutes and 7 seconds
......@@ -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() - 3 * 3600000) {
if (session.getLastOwnerActivity() > System.currentTimeMillis() - 60 * 1000) {
return session;
}
......
......@@ -99,8 +99,8 @@ public class SessionService implements ISessionService, ApplicationEventPublishe
}
}
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;
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;
@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