Return scavenge to on-by-default; make value for scavenge property in session.mod same as default in id-manager.xml.
This commit is contained in:
Jan Bartel 2016-09-22 15:52:11 +10:00
parent 133d584b94
commit bc4e65ebf2
3 changed files with 4 additions and 3 deletions

View File

@ -16,4 +16,4 @@ etc/sessions/id-manager.xml
#jetty.sessionIdManager.workerName=node1
## Period between runs of the session scavenger (in seconds)
#jetty.sessionScavengeInterval.seconds=60
#jetty.sessionScavengeInterval.seconds=600

View File

@ -44,7 +44,7 @@ public class HouseKeeper extends AbstractLifeCycle
protected Scheduler.Task _task; //scavenge task
protected Runner _runner;
protected boolean _ownScheduler = false;
private long _intervalMs = 0;
private long _intervalMs = DEFAULT_PERIOD_MS;

View File

@ -43,7 +43,8 @@ public class SessionContext
public SessionContext (String workerName, ContextHandler.Context context)
{
_sessionHandler = context.getContextHandler().getChildHandlerByClass(SessionHandler.class);
if (context != null)
_sessionHandler = context.getContextHandler().getChildHandlerByClass(SessionHandler.class);
_workerName = workerName;
_context = context;
_canonicalContextPath = canonicalizeContextPath(_context);