Server: 2.3.0
Client 1.0.4
I was trying out the reconnection system, and after unplugging my network cable I get the following in my log:
Code: Select all
110143 [New I/O worker #1] INFO sfs2x.client.core.EventDispatcher - Dispatching event OnDisconnect to 1 listeners
110143 [New I/O worker #1] INFO sfs2x.client.bitswarm.BitSwarmClient - Attempting reconnection in 1000 msec
110143 [Thread-4] ERROR sfs2x.client.core.sockets.TCPSocketLayer - TCPSocketLayer: Socket error: An existing connection was forcibly closed by the remote host
110143 [New I/O worker #1] INFO sfs2x.client.core.EventDispatcher - Dispatching event reconnectionTry to 1 listeners
110143 [New I/O worker #1] INFO sfs2x.client.core.EventDispatcher - Dispatching event connectionRetry to 1 listeners
[TEST] Connection retry: connectionRetry [ sfs2x.client.SmartFox@1a8fa0d1]
[TEST] getReconnectionSeconds(): 60
110143 [Thread-4] INFO sfs2x.client.core.EventDispatcher - Dispatching event OnError to 1 listeners
110145 [Thread-4] INFO sfs2x.client.core.EventDispatcher - Dispatching event ioError to 1 listeners
110262 [Thread-8] ERROR sfs2x.client.core.sockets.TCPSocketLayer - TCPSocketLayer: Socket error: null
110262 [Thread-8] INFO sfs2x.client.core.EventDispatcher - Dispatching event OnError to 1 listeners
110262 [Thread-8] INFO sfs2x.client.core.EventDispatcher - Dispatching event ioError to 1 listeners
128192 [AWT-EventQueue-0] WARN sfs2x.client.SmartFox - You are not connected. Request cannot be sent: sfs2x.client.requests.ExtensionRequest@10f1f34a
130158 [AWT-EventQueue-0] WARN sfs2x.client.SmartFox - You are not connected. Request cannot be sent: sfs2x.client.requests.ExtensionRequest@50f800db
(The last two events are because of an extension request I did, the two entries starting with [TEST] are my own logs).
The CONNECTION_RETRY event is triggered (which is good I assume), however there is a bug in the system:
I never get the CONNECTION_RESUME / CONNECTION_LOST event (not at the start, but also not after the 60 second reconnect has passed).
I know that unplugging my network cable probably isn't the correct way to test the system, but I do expect to get the CONNECTION_LOST event (which I never seem to get).
The log also says this: "TCPSocketLayer: Socket error: null", not sure if this is a problem or not.
Is this a client bug?