rohityadavcloud commented on code in PR #6393:
URL: https://github.com/apache/cloudstack/pull/6393#discussion_r874657602


##########
server/src/main/java/com/cloud/api/ApiSessionListener.java:
##########
@@ -55,29 +52,12 @@ public void sessionCreated(HttpSessionEvent event) {
         }
         LOGGER.debug("Sessions count: " + getSessionCount());
     }
+
     public void sessionDestroyed(HttpSessionEvent event) {
         LOGGER.debug("Session destroyed by Id : " + event.getSession().getId() 
+ " , session: " + event.getSession().toString() + " , source: " + 
event.getSource().toString() + " , event: " + event.toString());
         synchronized (this) {
             sessions.remove(event.getSession());
         }
         LOGGER.debug("Sessions count: " + getSessionCount());
     }
-
-    @Override
-    public void requestDestroyed(ServletRequestEvent event) {
-        LOGGER.debug("request destroyed");
-    }
-
-    @Override
-    public void requestInitialized(ServletRequestEvent event) {
-        LOGGER.debug("request initialized");
-        HttpServletRequest request = (HttpServletRequest) 
event.getServletRequest();
-        HttpSession session = request.getSession();
-        if (session.isNew()) {

Review Comment:
   @DaanHoogland maybe one way is to use a ConcurrentHashMap to store total 
unique sessions?



-- 
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