Session Reconnection failure

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
yysct2005
Posts: 21
Joined: 28 Apr 2011, 06:39

Session Reconnection failure

Post 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)
请加入QQ群: 33431550
一起讨论学习,webgame å¼€å
yysct2005
Posts: 21
Joined: 28 Apr 2011, 06:39

Session Reconnection failure

Post by yysct2005 »

the user's from IP: 172.28.11.89:3373

i use version is SFS2XRC2a

thx.
请加入QQ群: 33431550
一起讨论学习,webgame å¼€å
yysct2005
Posts: 21
Joined: 28 Apr 2011, 06:39

Session Reconnection failure

Post by yysct2005 »

ReconnectionToken is changed? is it?

I set <userReconnectionSeconds>5</userReconnectionSeconds>

in zone.xml.
[/u]
请加入QQ群: 33431550
一起讨论学习,webgame å¼€å
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

It can happen. A connection can be shut down for many reasons, network issues, slowness, wifi instability, lack of bandwidth etc...
Lapo
--
gotoAndPlay()
...addicted to flash games
mmilen
Posts: 311
Joined: 09 Nov 2010, 00:48
Contact:

Post 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.
mmilen
Posts: 311
Joined: 09 Nov 2010, 00:48
Contact:

Re:

Post 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.
Post Reply