324601 Check session expiry on access
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2252 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
b4ac274cbc
commit
5faf2a9f53
|
@ -27,6 +27,7 @@ jetty-7.2-SNAPSHOT
|
|||
+ 324377 Allow dispatch of ServletRequest and ServletResponse
|
||||
+ 324379 Change content type after getWriter
|
||||
+ 324501 Fire RequestListener.requestDestroyed in last-to-first order.
|
||||
+ 324601 Check session expiry on access
|
||||
+ JETTY-912 added per exchange timeout api
|
||||
+ JETTY-1245 Do not use direct buffers with NIO SSL
|
||||
+ JETTY-1249 Apply max idle time to all connectors
|
||||
|
|
|
@ -992,10 +992,21 @@ public abstract class AbstractSessionManager extends AbstractLifeCycle implement
|
|||
{
|
||||
synchronized(this)
|
||||
{
|
||||
_newSession=false;
|
||||
_lastAccessed=_accessed;
|
||||
_accessed=time;
|
||||
_requests++;
|
||||
if (!_invalid)
|
||||
{
|
||||
if (_lastAccessed + _maxIdleMs < time)
|
||||
{
|
||||
invalidate();
|
||||
}
|
||||
else
|
||||
{
|
||||
_newSession=false;
|
||||
_lastAccessed=_accessed;
|
||||
_accessed=time;
|
||||
_requests++;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue