Page 1 of 1

Session Reconnection failure

Posted: 24 Jun 2011, 10:29
by yysct2005
when user was playing game in room extentions, but happend Session removed and Socket closed: java.nio.channels.SocketChannel[closed]


logs here:

23 Jun 2011 22:35:30,985 INFO [pool-2-thread-2] api.response.SFSResponseApi - Room Recipients: [{ Id: 37, Type: DEFAULT, Logged: Yes, IP: 172.28.11.67:2043 }, { Id: 39, Type: DEFAULT, Logged: Yes, IP: 172.28.11.89:3373 }]
23 Jun 2011 22:35:30,987 INFO [pool-2-thread-2] bitswarm.sessions.DefaultSessionManager - Session removed: { Id: 39, Type: DEFAULT, Logged: Yes, IP: 172.28.11.89:3373 }
23 Jun 2011 22:35:30,987 INFO [SocketReader] bitswarm.core.SocketReader - Socket closed: java.nio.channels.SocketChannel[closed]
23 Jun 2011 22:35:30,988 INFO [pool-2-thread-2] v2.entities.SFSZone - User: 2 was disconnected.
23 Jun 2011 22:35:30,988 INFO [pool-2-thread-2] v2.api.SFSApi - User disconnected: ( User Name: 2, Id: 27, Priv: 1, Sess: 172.28.11.89:3373 )
23 Jun 2011 22:35:30,989 INFO [pool-2-thread-2] sfs.game.TexasGame - ----------texas clear start...........
23 Jun 2011 22:35:30,989 INFO [pool-2-thread-2] api.response.SFSResponseApi - Room Recipients: [{ Id: 37, Type: DEFAULT, Logged: Yes, IP: 172.28.11.67:2043 }]
23 Jun 2011 22:35:30,989 INFO [pool-2-thread-2] api.response.SFSResponseApi - Room Recipients: [{ Id: 37, Type: DEFAULT, Logged: Yes, IP: 172.28.11.67:2043 }]
23 Jun 2011 22:35:30,990 INFO [pool-2-thread-2] sfs.game.TexasGame - ----------texas clear end...........
23 Jun 2011 22:35:30,990 INFO [pool-1-thread-4] sfs.game.TexasGame - --leave ----OK----seatNo: 3 ;userdbid:2 --end------
23 Jun 2011 22:35:32,909 INFO [SocketReader] bitswarm.core.SocketAcceptor - Session created: { Id: 43, Type: DEFAULT, Logged: No, IP: 172.28.11.93:5918 } on Server port: 9933 <---> 5918
23 Jun 2011 22:35:32,910 INFO [com.smartfoxserver.v2.controllers.SystemController-3] v2.controllers.SystemController - {IN}: Handshake
23 Jun 2011 22:35:33,217 INFO [com.smartfoxserver.v2.controllers.SystemController-4] v2.controllers.SystemController - {IN}: Login
23 Jun 2011 22:35:33,251 INFO [pool-1-thread-1] game.db.DbManager - ^^^^^^ updateUserChips ^^^^^^^ OK ? 1 : -1 1
23 Jun 2011 22:35:33,258 INFO [pool-1-thread-1] Extensions - {texasApp}: 3====Login OK-- 40
23 Jun 2011 22:35:33,258 INFO [pool-1-thread-1] Extensions - {texasApp}: ++++++++++++++++++++++++++++++++++++++++++++
23 Jun 2011 22:35:33,260 INFO [pool-1-thread-1] v2.api.SFSApi - Login in, { Zone: TexasApp }, ( User Name: 3, Id: 30, Priv: 1, Sess: 172.28.11.93:5918 )
23 Jun 2011 22:35:33,262 INFO [pool-1-thread-1] Extensions - {texasApp}: 30_6_seatNo
23 Jun 2011 22:35:34,417 INFO [SocketReader] bitswarm.core.SocketAcceptor - Session created: { Id: 44, Type: DEFAULT, Logged: No, IP: 172.28.11.89:3416 } on Server port: 9933 <---> 3416
23 Jun 2011 22:35:34,541 INFO [com.smartfoxserver.v2.controllers.SystemController-5] v2.controllers.SystemController - {IN}: Handshake
23 Jun 2011 22:35:34,543 INFO [SocketReader] bitswarm.core.SocketReader - Socket closed: java.nio.channels.SocketChannel[closed]
23 Jun 2011 22:35:34,544 INFO [com.smartfoxserver.v2.controllers.SystemController-5] bitswarm.sessions.DefaultSessionManager - Session removed: { Id: 44, Type: DEFAULT, Logged: No, IP: 172.28.11.89:3416 }
23 Jun 2011 22:35:34,544 WARN [com.smartfoxserver.v2.controllers.SystemController-5] v2.controllers.SystemController -
com.smartfoxserver.bitswarm.exceptions.SessionReconnectionException: Session Reconnection failure. The passed Session is not managed by the ReconnectionManager: java.nio.channels.SocketChannel[connected local=/172.28.7.146:9933 remote=/172.28.11.89:3416]
com.smartfoxserver.bitswarm.sessions.DefaultReconnectionManager.reconnectSession(DefaultReconnectionManager.java:134)
com.smartfoxserver.bitswarm.sessions.DefaultSessionManager.reconnectSession(DefaultSessionManager.java:376)
com.smartfoxserver.v2.controllers.system.Handshake.execute(Handshake.java:68)
com.smartfoxserver.v2.controllers.SystemController.processRequest(SystemController.java:127)
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)

Session Reconnection failure

Posted: 24 Jun 2011, 10:31
by yysct2005
the user's from IP: 172.28.11.89:3373

i use version is SFS2XRC2a

thx.

Session Reconnection failure

Posted: 25 Jun 2011, 13:28
by yysct2005
ReconnectionToken is changed? is it?

I set <userReconnectionSeconds>5</userReconnectionSeconds>

in zone.xml.
[/u]

Posted: 30 Jun 2011, 07:44
by Lapo
It can happen. A connection can be shut down for many reasons, network issues, slowness, wifi instability, lack of bandwidth etc...

Posted: 17 Aug 2011, 03:39
by mmilen
I'm running at the same error message, when I try to reconnect. The user is shown in the admin console and is still present after the error is thrown.

Re:

Posted: 30 Aug 2012, 20:39
by mmilen
Lapo wrote:It can happen. A connection can be shut down for many reasons, network issues, slowness, wifi instability, lack of bandwidth etc...
Sure the only thing is that both the server and the App running on a simulator are on the same computer. And as I have stated the issue absolutely does not exists with socketed connection.