Page 1 of 1

Connection problems.

Posted: 26 Apr 2013, 08:04
by Neznajka
In SmartFoxServer 2x is some problems with connection loses, I mean there is sometimes connections without connect. by what I mean there is no dissconnect event and there are no requests that was handled by server, usualy it happens when the internet connections is reistableshed.

I woul like to suggest give some function like sfs.getConnection.ressurect(user,password,AditionalData); (request from ActionScript api). witch will totaly kill the old user connection on the server side and client side and will try to login user by onRessurect (server request handler to check is login correct). that will possible be the best solution to reconnect, ye you can kill flash connection, after you can destroy object create new and connect by function login, to reistablesh connection but than you can't be sure that connection won't trigger events from simple login, and all data that was created in sfs object will be lost.

Re: Connection problems.

Posted: 26 Apr 2013, 21:49
by Lapo
I wish that could be possible, but it doesn't depend on us :(
It's a much more complex issue that involves the low level TCP protocol and how it handles the state of a connection.

You can learn more about it here:
http://docs2x.smartfoxserver.com/Gettin ... n-hrc-plus

thanks