I'm using Smartfoxserver v 2.13. I tested the reconnection to the server with the client android via switching the connection. After several such connections, several users with the same name appears on the server(in admin tool). This is strange, because it is specified in the LoginEventHandler to disable the user with a duplicate name.
Code: Select all
User user = getApi().getUserByName(userName);
if (user != null){
getApi().disconnect(user.getSession());
}
HRC+ reconnection disabled. In the server logs i can see creating sessions after all logins, but not always closing. Some sessions will close later after idle timeout. I tried disconnect(), disconnectUser(), logout(), no one always works.
Maybe a problem in different ip addresses of one user...
In the admin tool i saw up to 5 different users with the same name. All of them have same name, session and other information. I can attach log files if you need it.
Thank you in advance.