Page 1 of 1

HttpConnection.as - comented code problem

Posted: 09 Jun 2008, 12:57
by 3eka
Hello!

I'm using SFS with BlueBox. When server can not be reached, SF Client tries to connect via BlueBox and, of course, connection fails (no connection available) flash client does not fire onConnection event.

I looked through the code of HttpConnection.as and noticed commented code at line 146 in method handleResponse of class HttpConnection:

/*
else
{
// fire error
classRef.handleIOError("I/O error: null response from server")
}
*/

When i discommented this line of code everything works fine.
Why did you comment this code? Is there any reason or just a bug?

Thanx for the answer.

Posted: 09 Jun 2008, 13:06
by 3eka
Almost forgot: i'm using AS 2.0 API

Posted: 10 Jun 2008, 22:35
by 3eka
Excuse me, but does somebody answer question here? Is there any support? :?

Posted: 11 Jun 2008, 07:25
by patso
Here is the code from the API for AS 2 for sfs pro 1.6

Code: Select all

else
{
   // If not already connected -> BlueBox connection failure.
   if (!classRef.connected)
      classRef.handleIOError("I/O error: null response from server")
}


Maybe you're using older version of the API.

Posted: 11 Jun 2008, 09:44
by 3eka
Thanx. This problem was really fixed in 1.6.1 and i'm still using 1.6.0.

http://www.smartfoxserver.com/products/ ... 1_6_2.html

Upgrading...