So I tried debugging this issue and I watched the output of the game along with the output of the smartfox instance and nothing was coming out but after a few minutes (I checked after 5) my requests weren't going through to the server and coming back to the device. How can I get disconnected from smartfox without getting a connection lost error?
After a few more minutes of waiting, I finally received some of this stuff;
Code: Select all
[SFS - ERROR] TCPSocketLayer: General error reading data from socket: Read failure at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0
at Sfs2X.Core.Sockets.TCPSocketLayer.Read () [0x00000] in <filename unknown>:0
[SFS - INFO] Reconnection attempt: 1 - time left:14.999683 sec.
OnConnectionRetry
[SFS - ERROR] TCPSocketLayer: Connection closed by the remote side
OnConnectionLost
Connection was lost, Reason: unknown
OnConnectionLost
Connection was lost, Reason: unknown
and Smartfox output was saying this ;
Code: Select all
20:46:24,250 INFO [SocketReader] sessions.DefaultSessionManager - Session created: { Id: 5, Type: DEFAULT, Logged: No, IP: 24.193.11.96:50518 } on Server port: 9933 <---> 50518
20:46:24,252 WARN [SFSWorker:Sys:1] v290.SystemReqController - com.smartfoxserver.bitswarm.exceptions.SessionReconnectionException: Session Reconnection failure. Time expired for Session: { Id: 4, Type: DEFAULT, Logged: Yes, IP: 24.193.11.96:50489 }
What is going on here? Am I being disconnected for being idle? If yes, then why is it taking another few minutes before getting the signal that I was disconnected?
I have the session max idle time set to 60
I have the user max idle time set to 3600
Thanks in advanced!