Server Reconnection Issues
Posted: 18 Aug 2011, 14:52
Hello,
I've searched through the forum and found some posts about the same issue, but not quite the same scenario.
I'm working with a long running process with the server using the Unity API, from a C# App, im not inside Unity but in a custom Environment.
The issue is that, i can successfully open a connection to the server, log in, and perform any needed operation. Due to the application way of working, this app will stay open for a long time.
As expected after a certain amount of time of inactivity the server drops my connection, and close the session, sending the user the CONNECTION_LOST event.
But after that when i need the connection back, and after the confirmation that the previous connection was dropped i try to connect to to the server again. The server initiates the connection, and register the attempt. But no Client Side Connection Event is Fired. And the server Drops the connection after little time. Printing an error to the Console. That happens every time i try to reconnect using that Application Instance. But if i completely close the App, and open it again, everything work as expected.
Modifying the Log Level for the server i see that the Handshake is processed and sent back to the client, but the connection event is never received.
The message Printed by the server after this is:
[SFS - ERROR] TCPSocketLayer: Connection closed by the remote side
I can upload testing code, and the server log if needed.
Ivan
I've searched through the forum and found some posts about the same issue, but not quite the same scenario.
I'm working with a long running process with the server using the Unity API, from a C# App, im not inside Unity but in a custom Environment.
The issue is that, i can successfully open a connection to the server, log in, and perform any needed operation. Due to the application way of working, this app will stay open for a long time.
As expected after a certain amount of time of inactivity the server drops my connection, and close the session, sending the user the CONNECTION_LOST event.
But after that when i need the connection back, and after the confirmation that the previous connection was dropped i try to connect to to the server again. The server initiates the connection, and register the attempt. But no Client Side Connection Event is Fired. And the server Drops the connection after little time. Printing an error to the Console. That happens every time i try to reconnect using that Application Instance. But if i completely close the App, and open it again, everything work as expected.
Modifying the Log Level for the server i see that the Handshake is processed and sent back to the client, but the connection event is never received.
The message Printed by the server after this is:
[SFS - ERROR] TCPSocketLayer: Connection closed by the remote side
I can upload testing code, and the server log if needed.
Ivan