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

            Bug ID: 60096
           Summary: getOpenSessions() always returns only one session
                    instance
           Product: Tomcat 8
           Version: 8.5.5
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebSocket
          Assignee: [email protected]
          Reporter: [email protected]

javax.websocket.Ssssion#getOpenSessions() always returns only one session
instance which is the original session itself.
This is because, 
  - one instance of ServerEndpoint is used per application / VM / connected
peer, i.e. per session, this is JSR 356 spec
  - org.apache.tomcat.websocket.WsWebSocketContainer maintains Session
instances with endpointSessionMap which is an "Endpoint instance to a Set of
WsSession" map and getOpenSessions() retrieves target sessions from this map.

The key of endpointSessionMap sould be "Class" instance of Endpoint instead of
Endpoint instance, shoudn't it ?

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