Weird disconnection at javascript clients

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

Moderators: Lapo, Bax

User avatar
ekrem5353
Posts: 88
Joined: 10 Dec 2015, 15:50

Weird disconnection at javascript clients

Postby ekrem5353 » 07 Feb 2019, 08:34

Hi,

We are writing javascript client to our latest game.We already have android and ios clients. When we were testing the game with four users at live server ( with javascript clients) three of users got disconnected. based on this logs what might have caused it


07 Feb 2019 | 11:16:42,227 | INFO | qtp392403246-255194 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 122844, Type: WEBSOCKET, Logged: Yes, IP: 212.252.75.183:37716 }
07 Feb 2019 | 11:16:42,230 | INFO | pool-1-thread-2 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 122478, Type: WEBSOCKET, Logged: Yes, IP: 212.252.75.183:37551 }
07 Feb 2019 | 11:16:42,230 | INFO | SFSWorker:Sys:4 | v2.api.SFSApi | | User disconnected: { Zone: CanakKelime101 }, ( User Name: 83446, Id: 99599, Priv: 1, Sess: 212.252.75.183:37716 ) , SessionLen: 1230442, Type: JavaScript
07 Feb 2019 | 11:16:42,230 | INFO | qtp392403246-255158 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 122478, Type: WEBSOCKET, Logged: No, IP: 212.252.75.183:37551 }
07 Feb 2019 | 11:16:42,231 | INFO | SFSWorker:Sys:3 | v2.api.SFSApi | | User disconnected: { Zone: CanakKelime101 }, ( User Name: 1612, Id: 99301, Priv: 3, Sess: 212.252.75.183:37551 ) , SessionLen: 1578133, Type: JavaScript
07 Feb 2019 | 11:16:42,231 | WARN | pool-1-thread-2 | extensions.compress.CompressExtension | |
java.io.EOFException: Connection has been closed locally
at org.eclipse.jetty.websocket.common.io.FrameFlusher.enqueue(FrameFlusher.java:339)
at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.outgoingFrame(AbstractWebSocketConnection.java:614)
at org.eclipse.jetty.websocket.common.extensions.AbstractExtension.nextOutgoingFrame(AbstractExtension.java:182)
at org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtension.nextOutgoingFrame(PerMessageDeflateExtension.java:116)
at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.access$1000(CompressExtension.java:42)
at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.compress(CompressExtension.java:534)
at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.deflate(CompressExtension.java:435)
at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.process(CompressExtension.java:415)
at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241)
at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:224)
at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.outgoingFrame(CompressExtension.java:218)
at org.eclipse.jetty.websocket.common.extensions.ExtensionStack$Flusher.process(ExtensionStack.java:395)
at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241)
at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:224)
at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.outgoingFrame(ExtensionStack.java:296)
at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.uncheckedSendFrame(WebSocketRemoteEndpoint.java:310)
at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.sendAsyncFrame(WebSocketRemoteEndpoint.java:240)
at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.sendBytesByFuture(WebSocketRemoteEndpoint.java:276)
at sfs2x.websocket.SFS2XWSService$WSChannelListener.write(SFS2XWSService.java:376)
at com.smartfoxserver.bitswarm.websocket.jetty.WebSocketBinaryProtocolCodec.onPacketWrite(WebSocketBinaryProtocolCodec.java:121)
at com.smartfoxserver.bitswarm.core.BitSwarmEngine.writeToWebSocket(BitSwarmEngine.java:417)
at com.smartfoxserver.bitswarm.core.BitSwarmEngine.write(BitSwarmEngine.java:398)
at com.smartfoxserver.bitswarm.io.Response.write(Response.java:71)
at com.smartfoxserver.v2.api.response.SFSResponseApi.sendUserVarsUpdate(SFSResponseApi.java:519)
at com.smartfoxserver.v2.api.response.SFSResponseApi.notifyUserVariablesUpdate(SFSResponseApi.java:494)
at com.smartfoxserver.v2.api.SFSApi.fireUserVariablesEvent(SFSApi.java:1723)
at com.smartfoxserver.v2.api.SFSApi.setUserVariables(SFSApi.java:1615)
at com.smartfoxserver.v2.api.SFSApi.setUserVariables(SFSApi.java:1604)
at com.ecmur.kelime101.logic.helpers.UpdateVariablesAfterGameStart.removeRoomPoints(UpdateVariablesAfterGameStart.java:80)
at com.ecmur.kelime101.extensions.GameRoomExtension.startGame(GameRoomExtension.java:265)
at com.ecmur.kelime101.extensions.GameRoomExtension.lambda$startGameTimer$3(GameRoomExtension.java:786)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
07 Feb 2019 | 11:16:42,243 | INFO | pool-1-thread-2 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 122261, Type: WEBSOCKET, Logged: Yes, IP: 212.252.75.183:37812 }
07 Feb 2019 | 11:16:42,243 | INFO | qtp392403246-254961 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 122261, Type: WEBSOCKET, Logged: Yes, IP: 212.252.75.183:37812 }
07 Feb 2019 | 11:16:42,243 | INFO | SFSWorker:Sys:4 | v2.api.SFSApi | | User disconnected: { Zone: CanakKelime101 }, ( User Name: 1136, Id: 99122, Priv: 3, Sess: 212.252.75.183:37812 ) , SessionLen: 1726788, Type: JavaScript
07 Feb 2019 | 11:16:42,244 | INFO | SFSWorker:Ext:3 | Extensions | | {Kelime101Extension}: User 83446 disconnected because of UNKNOWN
07 Feb 2019 | 11:16:42,246 | INFO | SFSWorker:Ext:1 | Extensions | | {Kelime101Extension}: User 1612 disconnected because of UNKNOWN
07 Feb 2019 | 11:16:42,251 | INFO | SFSWorker:Ext:2 | Extensions | | {Kelime101Extension}: User 1136 disconnected because of UNKNOWN

SmartFox 2.13.4

JavaScript version 1.7.14


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

Re: Weird disconnection at javascript clients

Postby Lapo » 07 Feb 2019, 14:12

Hi,
this error:
java.io.EOFException: Connection has been closed locally

indicates that the client dropped the connection. It's likely a network issue on the client side.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 13 guests