Issue #993
This commit is contained in:
parent
ac9583f6b3
commit
6e19bddc2d
|
@ -12,7 +12,18 @@
|
|||
<Arg>
|
||||
<Ref refid="Server"/>
|
||||
</Arg>
|
||||
<Set name="workerName"><Property name="jetty.sessionIdManager.workerName"><Default>node<Env name="JETTY_WORKER_INSTANCE" default="0"/></Default></Property></Set>
|
||||
<Set name="workerName">
|
||||
<Property name="jetty.sessionIdManager.workerName">
|
||||
<Default>node<Env name="JETTY_WORKER_INSTANCE">
|
||||
<Default>
|
||||
<Env name="GAE_MODULE_INSTANCE">
|
||||
<Default>0</Default>
|
||||
</Env>
|
||||
</Default>
|
||||
</Env>
|
||||
</Default>
|
||||
</Property>
|
||||
</Set>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Configure a session housekeeper to help with scavenging -->
|
||||
|
|
|
@ -336,9 +336,9 @@ public class DefaultSessionIdManager extends AbstractLifeCycle implements Sessio
|
|||
{
|
||||
String inst = System.getenv("JETTY_WORKER_INSTANCE");
|
||||
_workerName = "node"+ (inst==null?"0":inst);
|
||||
LOG.warn("No workerName configured for DefaultSessionIdManager, using {}",_workerName);
|
||||
}
|
||||
|
||||
LOG.info("DefaultSessionIdManager workerName={}",_workerName);
|
||||
_workerAttr=(_workerName!=null && _workerName.startsWith("$"))?_workerName.substring(1):null;
|
||||
|
||||
if (_houseKeeper == null)
|
||||
|
|
Loading…
Reference in New Issue