Users still appear in the room when they leave

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

albcom
Posts: 24
Joined: 06 Jan 2014, 00:28

Users still appear in the room when they leave

Postby albcom » 22 Mar 2017, 00:55

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.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Users still appear in the room when they leave

Postby Lapo » 22 Mar 2017, 08:45

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
Lapo
--
gotoAndPlay()
...addicted to flash games
albcom
Posts: 24
Joined: 06 Jan 2014, 00:28

Re: Users still appear in the room when they leave

Postby albcom » 25 Mar 2017, 01:38

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
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Users still appear in the room when they leave

Postby Lapo » 25 Mar 2017, 09:06

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
Lapo

--

gotoAndPlay()

...addicted to flash games
SergeyR
Posts: 4
Joined: 12 Jan 2018, 11:24

Re: Users still appear in the room when they leave

Postby SergeyR » 02 Jul 2018, 08:27

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.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Users still appear in the room when they leave

Postby Lapo » 02 Jul 2018, 09:16

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.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 54 guests