Page 1 of 1

Duplicate CONNECTION_LOST event

Posted: 01 Sep 2012, 17:46
by grhwood
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 ?

Re: Duplicate CONNECTION_LOST event

Posted: 02 Sep 2012, 10:05
by Lapo
Are you sure you are using the latest API available?
http://www.smartfoxserver.com/download/sfs2x#p=updates

Re: Duplicate CONNECTION_LOST event

Posted: 03 Sep 2012, 07:50
by grhwood
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

Re: Duplicate CONNECTION_LOST event

Posted: 04 Sep 2012, 09:33
by grhwood
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.