You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* TODO: Currently, Tomcat uses an Endpoint instance once - however the java doc of endpoint says: "Each instance of a websocket endpoint is guaranteed not to be called by more
49
-
* than one thread at a time per active connection." This could mean that after calling onClose(), the instance could be reused for another connection so onOpen() will get
50
-
* called (possibly from another thread).<br>
51
-
* If this is the case, we would need a variable holder for the variables that are accessed by the Room thread, and read the reference to the holder at the beginning of onOpen,
47
+
* TODO: Currently, Tomcat uses an Endpoint instance once - however the java doc of endpoint says: "Each instance
48
+
* of a websocket endpoint is guaranteed not to be called by more than one thread at a time per active connection."
49
+
* This could mean that after calling onClose(), the instance could be reused for another connection so onOpen()
50
+
* will get called (possibly from another thread).<br>If this is the case, we would need a variable holder for the
51
+
* variables that are accessed by the Room thread, and read the reference to the holder at the beginning of onOpen,
52
52
* onMessage, onClose methods to ensure the room thread always gets the correct instance of the variable holder.
0 commit comments