https://bz.apache.org/bugzilla/show_bug.cgi?id=57974

Zhang Zhongyi <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #8 from Zhang Zhongyi <[email protected]> ---
Now getOpenSessions can only return the current session.
The problem is that Endpoint is used as the key of the HashMap but its hashCode
and equals method are not overridden. They are directly inherited from Object. 

Each time a new connection comes in a new Endpoint instance is created. Because
it uses the hashCode and equals from Object, it will never match any instances
created before even if the request is to the same URL.

My suggestion is to use the URI from session.getRequestURI() as the key of the
map instead of the Endpoint.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to