Custom login issue

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

Moderators: Lapo, Bax

COB
Posts: 68
Joined: 28 Dec 2010, 08:54

Custom login issue

Postby COB » 12 May 2011, 10:16

After a few minutes/hours of running SFS a Custom Login Extension (this one from doc) is stuck.
Since that time other users cannot login to the zone. Other extension works fine.

Error appears much later - on the image.


What might be causing this error?

Greetings, Adam.

Image
User avatar
Lapo
Site Admin
Posts: 21276
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 14 May 2011, 07:45

What server version please?
Can you provide more info about the extension?
Do you have a way to reproduce the issue?
Lapo
--
gotoAndPlay()
...addicted to flash games
COB
Posts: 68
Joined: 28 Dec 2010, 08:54

Postby COB » 14 May 2011, 08:10

It's a SFS2X RC2 on Windows machine. It's not easy to reproduce this issue "on demand", but we observe it very often. After a few loggin attemts suddenly login extension stops responding. However, other extensions work fine, like for example registration. Login is most often used, so we observe this problem with it, but it concerns also registration. It is still possible to connect with the server, but then after some time error appears in the console and server stops responding. Also admin tool can't connect to server then.
User avatar
Lapo
Site Admin
Posts: 21276
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 16 May 2011, 09:26

It might have to do with a logout.
Does your application allow the user to performa a logout via either the client or server API?
Lapo

--

gotoAndPlay()

...addicted to flash games
COB
Posts: 68
Joined: 28 Dec 2010, 08:54

Postby COB » 16 May 2011, 12:06

At the moment we have only:

Code: Select all

void OnApplicationQuit() {
smartFox.Disconnect();
}

Are you saying that we should also add:

Code: Select all

smartFox.Send(new LogoutRequest());
?
User avatar
Lapo
Site Admin
Posts: 21276
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 16 May 2011, 16:23

No, not in this case.
I don't even think it's necessary to call disconnect on that event but I don't see how it could hurt.
Lapo

--

gotoAndPlay()

...addicted to flash games
COB
Posts: 68
Joined: 28 Dec 2010, 08:54

Postby COB » 16 May 2011, 16:34

By "not in this case" you mean that it should be called somewhere else?
As we progress with our tests this issue is becoming more serious. We use 2 to 3 logged users at a time and after a few login attempts I have to restart server because extension stops responding...
dest
Posts: 4
Joined: 13 May 2011, 13:29

Postby dest » 28 Jun 2011, 11:58

Adding connection.close(); after every connection solved the problem.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 23 guests