You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2016/09/08 02:03:04 UTC
[Bug 60096] New: getOpenSessions() always returns only one session
instance
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: dev@tomcat.apache.org
Reporter: tsuhtan@ngmat.com
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60096] getOpenSessions() always returns only one session
instance
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60096
Tsuyoshi Tsuhtan Sato <ts...@ngmat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
OS| |All
--- Comment #1 from Tsuyoshi Tsuhtan Sato <ts...@ngmat.com> ---
I'm sorry.
I could reached the same content for the different tomcat version.
I understand this is spec of tomcat.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58223
*** This bug has been marked as a duplicate of bug 58223 ***
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org