Duplicate CONNECTION_LOST event

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

Moderators: Lapo, Bax

grhwood
Posts: 116
Joined: 15 Mar 2011, 04:43

Duplicate CONNECTION_LOST event

Postby grhwood » 01 Sep 2012, 17:46

Hi,

While testing the idle disconnection on the client side (Java client), I receive 2 CONNECTION_LOST event:

CONNECTION_LOST: idle
CONNECTION_LOST: unknown

Is it the intended behavior ?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Duplicate CONNECTION_LOST event

Postby Lapo » 02 Sep 2012, 10:05

Are you sure you are using the latest API available?
http://www.smartfoxserver.com/download/sfs2x#p=updates
Lapo
--
gotoAndPlay()
...addicted to flash games
grhwood
Posts: 116
Joined: 15 Mar 2011, 04:43

Re: Duplicate CONNECTION_LOST event

Postby grhwood » 03 Sep 2012, 07:50

Hi,

I've upgraded the client api version to 1.0.1 and it seems firing only idle CONNECTION_LOST event. But when i shutdown the server, client won't fire anything. Here is the log on the client side:

3053 [New I/O client worker #1-1] ERROR sfs2x.client.core.sockets.TCPSocketLayer - TCPSocketLayer: Socket error: An existing connection was forcibly closed by the remote host
3053 [New I/O client worker #1-1] INFO sfs2x.client.core.EventDispatcher - Dispatching event OnError to 1 listeners
3053 [New I/O client worker #1-1] INFO sfs2x.client.core.EventDispatcher - Dispatching event ioError to 1 listeners
3053 [New I/O client worker #1-1] INFO sfs2x.client.core.EventDispatcher - Dispatching event OnDisconnect to 1 listeners
grhwood
Posts: 116
Joined: 15 Mar 2011, 04:43

Re: Duplicate CONNECTION_LOST event

Postby grhwood » 04 Sep 2012, 09:33

Can anyone confirm this CONNECT_LOST event being swallowed with Java API 1.0.1 ? It seems to be in the fixed but it still there.

Thanks.

PS: This should be move the Client discussion.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 64 guests