users@tyrus.java.net

MAX_SESSIONS_PER_REMOTE_ADDR_EXCEEDED

From: Pellerin, Clement <Clement_Pellerin_at_ibi.com>
Date: Tue, 30 Jun 2015 09:49:39 -0400

In the constructor of TyrusWebSocketEngine, there is an anonymous subclass of TyrusEndpointWrapper.SessionListener used to implement the limits on the maximum number of sessions. When the method onOpen() returns MAX_SESSIONS_PER_REMOTE_ADDR_EXCEEDED, the counter has been incremented but the specific remoteAddressCounter was not. How is this case recognized when the connection is closed to decrement the counter but leave the remoteAddressCounter intact?