socket closed , gave me a hand

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

Moderators: Lapo, Bax

prince_hao
Posts: 71
Joined: 30 Oct 2010, 04:35

socket closed , gave me a hand

Postby prince_hao » 14 May 2011, 05:21

I'm a little confused,My game is running a day or so automatically socket close,but when i login in admintool ,I found the normal memory usage,so i do not know why the socket closed,could you give me some help? tanks so much
appels
Posts: 464
Joined: 28 Jul 2010, 02:12
Contact:

Postby appels » 14 May 2011, 07:20

Do you find any info in the logs ?
If the server closes the socket, it has to have a reason.
prince_hao
Posts: 71
Joined: 30 Oct 2010, 04:35

Postby prince_hao » 16 May 2011, 01:34

appels wrote:Do you find any info in the logs ?
If the server closes the socket, it has to have a reason.


13 五月 2011 23:10:14,625 INFO [SocketReader] bitswarm.core.SocketAcceptor - Session created: { Id: 308, Type: DEFAULT, Logged: No, IP: 124.207.234.45:1100 } on Server port: 9933 <---> 1100
13 五月 2011 23:10:14,625 INFO [com.smartfoxserver.v2.controllers.SystemController-1] v2.controllers.SystemController - {IN}: Handshake
13 五月 2011 23:10:14,687 INFO [com.smartfoxserver.v2.controllers.SystemController-1] v2.controllers.SystemController - {IN}: Login
13 五月 2011 23:15:35,046 INFO [SocketReader] bitswarm.sessions.DefaultSessionManager - Session removed: { Id: 308, Type: DEFAULT, Logged: No, IP: 124.207.234.45:1100 }
13 五月 2011 23:15:35,046 INFO [SocketReader] bitswarm.core.SocketReader - Socket closed: java.nio.channels.SocketChannel[closed]
appels
Posts: 464
Joined: 28 Jul 2010, 02:12
Contact:

Postby appels » 16 May 2011, 07:17

looks like you have been connected for 5 minutes, do you send packets to the server all the time ? Are you sure the idle timeout isn't kicking you ?
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 16 May 2011, 12:36

It seems an idle timeout issue. You connected and after 5 minutes without interacting with the server (not even login) you have been disconnected.
Paolo Bax
The SmartFoxServer Team
mihi
Posts: 12
Joined: 03 May 2018, 18:38

Re: socket closed , gave me a hand

Postby mihi » 09 Sep 2018, 11:05

I have this problem for 1 week. all things was good but i get Session removed and Socket closed error.
Please check attached fire for errors.

How can i fix that?

Thanks
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: socket closed , gave me a hand

Postby Bax » 10 Sep 2018, 07:40

mihi wrote:I have this problem for 1 week. all things was good but i get Session removed and Socket closed error.
Please check attached fire for errors.
How can i fix that?
Thanks

This thread is very old. Please start a new thread providing all necessary informations on your setup (server version, client type and version, steps to reproduce the issue, etc). Thank you.
Paolo Bax
The SmartFoxServer Team
mihi
Posts: 12
Joined: 03 May 2018, 18:38

Re: socket closed , gave me a hand

Postby mihi » 11 Sep 2018, 08:38

Bax wrote:
mihi wrote:I have this problem for 1 week. all things was good but i get Session removed and Socket closed error.
Please check attached fire for errors.
How can i fix that?
Thanks

This thread is very old. Please start a new thread providing all necessary informations on your setup (server version, client type and version, steps to reproduce the issue, etc). Thank you.



Done.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 53 guests