Page 1 of 1

Users still appear in the room when they leave

Posted: 22 Mar 2017, 00:55
by albcom
For some reason the server is caching or not dropping the user once they leave. They can login again but the "ghost" user still remains. This fills up the server fast, they show online but they are not. I am running version 2.12.3.

Used to work fine but for some reason this started to happen. Any suggestions/feedback on how to solve this is appreciated. Thank you.

Re: Users still appear in the room when they leave

Posted: 22 Mar 2017, 08:45
by Lapo
Hi,
can it be reproduces or does it happen sporadically?

In general ghost users are caused by incomplete TCP disconnections. If you take a look with a tool such as netstat you should notice this.
When this happens very often it's likely caused by network issues, or sometimes by firewalls.

In fact if you try to reproduce it locally (with no active firewalls) you won't succeed.

Thanks

Re: Users still appear in the room when they leave

Posted: 25 Mar 2017, 01:38
by albcom
We can reproduce it, it happens 20-30 times a day from different users. What is the resolution in this case? Is there something code wise we can do to fix it? At one point we can see a user name repeat 10-15 times in the lobby but obviously there are not online. Attached an image of the lobby users http://pasteboard.co/4WPfU1Twb.png

Re: Users still appear in the room when they leave

Posted: 25 Mar 2017, 09:06
by Lapo
albcom wrote:We can reproduce it, it happens 20-30 times a day from different users.

So can you describe the steps to reproduce it?

What is the resolution in this case? Is there something code wise we can do to fix it? At one point we can see a user name repeat 10-15 times in the lobby but obviously there are not online. Attached an image of the lobby users http://pasteboard.co/4WPfU1Twb.png

Please report what version of SFS2X you're using, what client platform and API version
Are client mostly mobile? desktop?

Thanks

Re: Users still appear in the room when they leave

Posted: 02 Jul 2018, 08:27
by SergeyR
We are using smartfoxserver 2.13.0 and we also have this problem with ghost users. All our clients are mobile users with C++ client API. This issue is really annoying and the only solution is to restart smartfoxserver but this is not a good option.

Re: Users still appear in the room when they leave

Posted: 02 Jul 2018, 09:16
by Lapo
Hi,
recently we have released patch 2.13.3 that addresses a corner case that can lead to users stuck in a Room.

You can download patch from here:
https://www.smartfoxserver.com/download/sfs2x#p=updates

I think this will help you remove the problem.