Automatically disconnecting after 2 minutes of playing
Posted: 01 Feb 2011, 16:11
Hello all,
I'm developing a small example using the known Islands Demo with this SFS2X server. I have the SFS server installed in my computer and running an instance of the game in another computer inside the same local network.
Well my problem is this one:
Everytime I connect to the game everything runs fine for about 2 minutes. After that, the client does not "feel" anything, but in the server console I get the following messages:
(The extension message is a small trace I wrote to check the reason why it disconnects from the server).
After those errors, I can't contact the server (I can't send any message). In the client log, I get this message just before the disconnection:
If it is of any help I get a lot of these (a lot, a lot) before the previous message:
I've been checking all kind of similar errors reported in the forums, changing the DLL, checking the security prefetch policy file, etc. but I have not found any solution.
I've noticed this error does not happen when using the editor, but just when using the webplayer.
Does anyone has any clue about what could be happening?
Thanks very much in advance,
José Franco.
I'm developing a small example using the known Islands Demo with this SFS2X server. I have the SFS server installed in my computer and running an instance of the game in another computer inside the same local network.
Well my problem is this one:
Everytime I connect to the game everything runs fine for about 2 minutes. After that, the client does not "feel" anything, but in the server console I get the following messages:
Code: Select all
01 feb 2011 17:07:38,981 INFO [SocketReader] bitswarm.sessions.DefaultSessionManager - Session removed: { Id: 5, Type:DEFAULT, Logged: Yes, IP: 192.168.10.103:1427 }
01 feb 2011 17:07:38,982 INFO [SocketReader] v2.entities.SFSZone - User: Cristo was disconnected.
01 feb 2011 17:07:38,983 INFO [SocketReader] v2.api.SFSApi - User disconnected: ( User Name: Cristo, Id: 1, Priv: 0, Sess: 192.168.10.103:1427 )
01 feb 2011 17:07:38,983 INFO [pool-1-thread-1] Extensions - {json}: User disconnected because: UNKNOWN
01 feb 2011 17:07:38,984 INFO [SocketReader] bitswarm.core.SocketReader - Socket closed: java.nio.channels.SocketChannel[closed]
After those errors, I can't contact the server (I can't send any message). In the client log, I get this message just before the disconnection:
Code: Select all
[SFS - ERROR] TCPSocketLayer: General error reading data from socket: Read failure at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0
at Sfs2X.Core.Sockets.TCPSocketLayer.Read () [0x00000] in <filename unknown>:0
Code: Select all
Header of the buffer: Binary Size: 3
12 00 08 ...
Header of the buffer: Binary Size: 3
12 00 03 ...
Header of the buffer: Binary Size: 3
12 00 03 ...
Header of the buffer: Binary Size: 3
12 00 08 ...
I've noticed this error does not happen when using the editor, but just when using the webplayer.
Does anyone has any clue about what could be happening?
Thanks very much in advance,
José Franco.

