Commit f9a11dad authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

HTTP-Binding sessions now cleaned up properly. JM-969

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@7055 b35dd754-fafc-0310-a699-88a17e54d16e
parent e4694696
......@@ -312,9 +312,16 @@ public class HttpSession extends ClientSession {
if (connectionQueue.size() <= 0) {
return lastActivity;
}
// The session is currently active, return the current time.
else {
return System.currentTimeMillis();
for(HttpConnection connection : connectionQueue) {
// The session is currently active, return the current time.
if(!connection.isClosed()) {
return System.currentTimeMillis();
}
}
// We have no currently open connections therefore we can assume that lastActivity is
// the last time the client did anything.
return lastActivity;
}
}
......
Markdown is supported
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