unknown status

Post here your questions about the Java client / Android API for SFS2X

Moderators: Lapo, Bax

rogerwu
Posts: 3
Joined: 19 Sep 2016, 10:50

unknown status

Postby rogerwu » 19 Sep 2016, 10:54

Hello,
I have a java client, and disconnected by server, reason is "unknown", anyone know why?
User avatar
Lapo
Site Admin
Posts: 20219
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: unknown status

Postby Lapo » 19 Sep 2016, 10:58

Hi,
when a client is disconnected with "reason unknown", it simply means that a generic connection error occurred along the way. Usually it can be due to a slow or bad client connection.

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
rogerwu
Posts: 3
Joined: 19 Sep 2016, 10:50

Re: unknown status

Postby rogerwu » 19 Sep 2016, 11:01

Lapo wrote:Hi,
when a client is disconnected with "reason unknown", it simply means that a generic connection error occurred along the way. Usually it can be due to a slow or bad client connection.

cheers


slow is mean network issue?
what is bad client connection
User avatar
Lapo
Site Admin
Posts: 20219
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: unknown status

Postby Lapo » 19 Sep 2016, 13:29

Network congestion or timeouts can cause disconnections and since they can happen at any point in the network path they are pretty difficult to identify. SmartFoxServer cannot detect which failure happened to an external hop in the network path.

And this is not unique to SmartFoxServer, any application is unable to do that. You would need a complex network analysis to find out the precise reason for a disconnection that is not cause directly by one of the two endpoints.
Lapo

--

gotoAndPlay()

...addicted to flash games
rogerwu
Posts: 3
Joined: 19 Sep 2016, 10:50

Re: unknown status

Postby rogerwu » 20 Sep 2016, 06:08

Lapo wrote:Network congestion or timeouts can cause disconnections and since they can happen at any point in the network path they are pretty difficult to identify. SmartFoxServer cannot detect which failure happened to an external hop in the network path.

And this is not unique to SmartFoxServer, any application is unable to do that. You would need a complex network analysis to find out the precise reason for a disconnection that is not cause directly by one of the two endpoints.


When I got reason = unknown. Server print error log like below. what was the error mean?

Code: Select all

20 Sep 2016 | 07:42:46,082 | WARN  | SFSWorker:Ext:2 | controllers.v290.ExtensionReqController |     | com.smartfoxserver.v2.exceptions.SFSExtensionException: Extension Request refused. Sender is not a User: { Id: 59, Type: DEFAULT, Logged: No, IP: 192.168.51.150:41288 }
        com.smartfoxserver.v2.controllers.v290.ExtensionReqController.processRequest(ExtensionReqController.java:93)
        com.smartfoxserver.v2.controllers.v290.ExtensionReqController$1.run(ExtensionReqController.java:68)
        java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        java.lang.Thread.run(Unknown Source)
User avatar
Lapo
Site Admin
Posts: 20219
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: unknown status

Postby Lapo » 20 Sep 2016, 07:44

This is a different error, not sure if related, could be.
It simply means that the client that has sent an Extension request does not exist as User in the system. In other words the client is not logged in.

It could be that the error is generated after the client has disconnected. If this is the case it simply indicates that some Extension requests where still in the queue waiting to be processed while the client got disconnected. When the system finally processes these requests it rejects them because the client is no longer connected.

If anything this is a consequence of the disconnection not the cause.

hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 1 guest