Hi,
I have set reconnection time 120s,now clientA login with testone,then clientB login with the same loginname, the server disconnt clientA in LoginEvent and allow the clientB login.but the clientA crash.How to solve it?
help me.thinks!
about reconnection
Moderators: Lapo, Bax, MBagnati
-
- Posts: 71
- Joined: 30 Oct 2010, 04:35
Re: about reconnection
Hi,
what does it mean that client A crashes?
Please describe what happens, which client errors you're getting exactly. Also add which client platform you're using and which version of the SFS2X client API.
Thanks
what does it mean that client A crashes?
Please describe what happens, which client errors you're getting exactly. Also add which client platform you're using and which version of the SFS2X client API.
Thanks
-
- Posts: 71
- Joined: 30 Oct 2010, 04:35
Re: about reconnection
Lapo wrote:Hi,
what does it mean that client A crashes?
Please describe what happens, which client errors you're getting exactly. Also add which client platform you're using and which version of the SFS2X client API.
Thanks
Hi Lapo,
Thanks for your reply! the client API is C++ 1.1.6
the server disconnt client A and When the breakpoint into SendHandshakeRequest(in SmartFox.cpp) the sessionToken is null.so Client A crashes!
Re: about reconnection
It sounds like you are trying to re-implement the "force-logout" system.
If you want to disconnect a client to allow another client with the same name this function already exists. It is called "Force Logout" and it is activated in the Zone Configurator.
When User "Kermit" will login any other user with the same name will be logged out automatically.
I don't recommend trying to replicate this manually because it's quite tricky to coordinate.
Thanks
If you want to disconnect a client to allow another client with the same name this function already exists. It is called "Force Logout" and it is activated in the Zone Configurator.
When User "Kermit" will login any other user with the same name will be logged out automatically.
I don't recommend trying to replicate this manually because it's quite tricky to coordinate.
Thanks
-
- Posts: 71
- Joined: 30 Oct 2010, 04:35
Re: about reconnection
Lapo wrote:It sounds like you are trying to re-implement the "force-logout" system.
If you want to disconnect a client to allow another client with the same name this function already exists. It is called "Force Logout" and it is activated in the Zone Configurator.
When User "Kermit" will login any other user with the same name will be logged out automatically.
I don't recommend trying to replicate this manually because it's quite tricky to coordinate.
Thanks
Hi Lapo,
I have to use the the "force-logout" system. But the problem still exists. Is related to I set up the reconnection?
Thanks
Re: about reconnection
Have you removed you server side code that removes logged in users manually?
Can you give me a step by step description of how to reproduce the problem?
Also can you specify which SmartFoxServer version are you using?
Thanks
Can you give me a step by step description of how to reproduce the problem?
Also can you specify which SmartFoxServer version are you using?
Thanks
-
- Posts: 71
- Joined: 30 Oct 2010, 04:35
Re: about reconnection
Lapo wrote:Have you removed you server side code that removes logged in users manually?
Can you give me a step by step description of how to reproduce the problem?
Also can you specify which SmartFoxServer version are you using?
Thanks
yeah! I have removed my server side code. server API is 2.9 , client API is C++ 1.1.6.
When User "Kermit" will login any other user with the same name will be logged out automatically.
the logged out client crashes!
the server set reconntcion 120s
Who is online
Users browsing this forum: No registered users and 30 guests