DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21502>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21502

[PATCH]Manager doesn't use correct method to get number of active sessions 

           Summary: [PATCH]Manager doesn't use correct method to get number
                    of active sessions
           Product: Tomcat 4
           Version: 4.1.25
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Webapps:Manager
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The question is: Why turn a hashmap into an array just to take its
length when you already have a method that returns the number of
sessions?  This will make the life of people who write session managers
that DON'T store all the active sessions in memory easier.


--- HTMLManagerServlet.java     2003-03-19 04:18:34.000000000 -0500
+++ HTMLManagerServlet.java     2003-07-08 09:22:04.000000000 -0400
@@ -403,7 +403,7 @@
                     (request.getContextPath() + "/html/sessions?path=" +
displayPath);
                 args[4] =
-                    new Integer(context.getManager().findSessions().length);
+                    new Integer(context.getManager().getActiveSessions());
                 writer.print(MessageFormat.format(APPS_ROW_DETAILS_SECTION,args));

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to