dheeraj12347 commented on PR #13058:
URL: https://github.com/apache/cloudstack/pull/13058#issuecomment-4412381497

   > @dheeraj12347 , I set consoleproxy.session.timeout to 30000, expecting my 
consoles to get lost in half a minute. I restarted the MS. The consoles keep 
working until about the half an hour, the default setting. (I didn’t measure 
exactly) Can you have another look at this?
   
   Hi @DaanHoogland ,
   
   I’ve updated the PR to address the consoleproxy.session.timeout behaviour 
you described:
   
   In ConsoleProxy.java I now read consoleproxy.session.timeout from the 
configuration (milliseconds), validate it, and store the effective value in 
ConsoleProxy.sessionTimeoutMillis, with a log line on startup showing the 
effective timeout.
   
   In ConsoleProxyGCThread.java I removed the hardcoded idle timeout and 
changed the GC logic to compute each viewer’s idle time in milliseconds and 
compare it against ConsoleProxy.sessionTimeoutMillis, logging the idle duration 
and configured timeout when a session is removed.
   
   To verify my changes, I built the console proxy server module with:
   
   bash
   mvn -pl services/console-proxy/server -am clean compile
   
   I’m open to any feedback on this approach, and I’m happy to further adjust 
or iterate based on your results when you re-test with 
consoleproxy.session.timeout=30000.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to