Disconnecting a lot of users gives exceptions

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

Moderators: Lapo, Bax

Post Reply
bgarde
Posts: 9
Joined: 15 Feb 2011, 12:01
Location: Netherlands
Contact:

Disconnecting a lot of users gives exceptions

Post by bgarde »

When disconnecting multiple clients simultaniously (same application) we get exceptions from smartfox:

com.smartfoxserver.v2.exceptions.SFSExtensionException: Extension Request refused. Sender is not a User: { Id: 5, Type: DEFAULT, Logged: Yes, IP: 212.64.125.31:55667 }
com.smartfoxserver.v2.controllers.ExtensionController.processRequest(ExtensionController.java:65)
com.smartfoxserver.bitswarm.controllers.AbstractController.run(AbstractController.java:96)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

The server is working ok after the exceptions but I find it worrying that exceptions do happen at all. Is there an explanation why this happens and way to prevent this?
Bart van de Garde
CTO - Ranj Serious Games
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Can you explain exactly how do you disconnect multiple clients in the same application? What do you mean exactly.
Please describe the process. Also specify which version you are using.

thnx
Lapo
--
gotoAndPlay()
...addicted to flash games
bgarde
Posts: 9
Joined: 15 Feb 2011, 12:01
Location: Netherlands
Contact:

Post by bgarde »

I have created a load test application that simulates multiple clients in one Adobe air application. When I run e.g. 10 clients in this application (10 connections with different users for smartfox server) and close the application so no disconnect is send through the smartfox api I get this error.

The server is on the latest RC2 patch.
Bart van de Garde
CTO - Ranj Serious Games
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

This is still not clear. Why should the server fire an exception regarding an invalid exception request (sender not a user?) while you are just disconnecting users?
Something else must be going on here. Can you provide step by step instructions showing what your code does? or even better, provide a test application. Thank you.
Paolo Bax
The SmartFoxServer Team
rav
Posts: 82
Joined: 06 Dec 2010, 13:14

Post by rav »

Probably request from user was in queue at the moment as a player was disconnected, so handler got request from dead user
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

No. it's unlikely.
Without knowing the details of the test it is very difficult to help. Maybe you could give us more detail or send us a proof of concept via email
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply