Before this just resulted in an instant CONNECTION_LOST event, but with HRC turned on the following is happening:
Client-side the CONNECTION_RETRY event is fired instantly but after that neither CONNECTION_RESUME is fired nor is CONNECTION_LOST fired even after 10 minutes. (Idle disconnection is 120 seconds). Following is the adb logcat for Unity.
Then on the server side this warning is the first thing that comes up
Code: Select all
09 Jan 2013 | 14:24:05,675 | WARN | com.smartfoxserver.v2.controllers.SystemController-1 | v2.controllers.SystemController | | com.smartfoxserver.bitswarm.exceptions.SessionReconnectionException: Session Reconnection failure. The passed Session is not managed by the ReconnectionManager: java.nio.channels.SocketChannel[connected local=/10.212.67.17:9933 remote=/86.130.63.165:60129]
com.smartfoxserver.bitswarm.sessions.DefaultReconnectionManager.reconnectSession(DefaultReconnectionManager.java:137)
com.smartfoxserver.bitswarm.sessions.DefaultSessionManager.reconnectSession(DefaultSessionManager.java:383)
com.smartfoxserver.v2.controllers.system.Handshake.execute(Handshake.java:68)
com.smartfoxserver.v2.controllers.SystemController.processRequest(SystemController.java:130)
com.smartfoxserver.bitswarm.controllers.AbstractController.run(AbstractController.java:96)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
then five seconds later
Code: Select all
09 Jan 2013 | 14:24:09,233 | INFO | pool-1-thread-2 | Extensions | | {battleMonkeys}: UserReconnectTryEventHandler - user:dave
then after 20 seconds (what I have set the user reconnection timeframe to)
Code: Select all
09 Jan 2013 | 14:24:29,385 | INFO | Scheduler1-thread-1 | v2.entities.SFSZone | | User: dave was disconnected.
09 Jan 2013 | 14:24:29,388 | INFO | Scheduler1-thread-1 | v2.api.SFSApi | | User disconnected: { Zone: BattleMonkeys }, ( User Name: dave, Id: 0, Priv: 1, Sess: 86.130.63.165:45244 ) , SessionLen: 329935, Type: UnityPlayer::
Not sure if I should be doing something else or soemthing is broken? Should also say using killConnection() to test it everything seems to work properly and get called in the right order very quickly,
Thanks