Page 1 of 1

Disconnecting a lot of users gives exceptions

Posted: 05 Jun 2011, 13:47
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?

Posted: 06 Jun 2011, 08:58
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

Posted: 09 Jun 2011, 09:12
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.

Posted: 10 Jun 2011, 11:49
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.

Posted: 10 Jun 2011, 12:29
by rav
Probably request from user was in queue at the moment as a player was disconnected, so handler got request from dead user

Posted: 12 Jun 2011, 06:32
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