Page 1 of 1

Smartfox is not responding after first fail connection

Posted: 11 Jul 2012, 13:31
by levancho
hi,

I have an application where i can pick the servers where i want to connect my client, we have local servers and integration servers,
problem is that if I try to connect client to server that is down, I get following error in client :

Code: Select all

## SocketError: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2031: Socket Error. URL: 127.0.0.1" errorID=2031]
## BlueBox Error: Error #2032: Stream Error. URL: http://127.0.0.1:8181/BlueBox/BlueBox.do


this is normal ,but,

all further attempts to connect same smart fox instance to other servers that are, for sure running, fails, and mysterious thing is that
I do not get feedback form smart fox client anymore, its just stays silent, no error messages or nothing,and if i keep clicking connect then I see in the console following info:
[SFS - WARN] A connection attempt is already in progress

this seems like a bug in smart fox client,

NOTE: if you need to reproduce the error I can send you my clinet air app (via email or PM).

Regards
Levan

Re: Smartfox is not responding after first fail connection

Posted: 11 Jul 2012, 13:37
by rjgtav
Hi.
I think this is the same issue as here.

Re: Smartfox is not responding after first fail connection

Posted: 12 Jul 2012, 03:53
by levancho
UPDATE:

killConnection does not work,

recreating smartfox object also is not good because then I have to reload config file, via service call

Re: Smartfox is not responding after first fail connection

Posted: 12 Jul 2012, 07:42
by Lapo
1) The error should only appear in the console not on the client (of course if you test in FB debug mode or Flash you will see that)
2) You should get the CONNECTION event with success parameter set to false
3) It is necessary to recreate the SmartFox object to start a new connection.