HttpConnection.as - comented code problem

Submit all your BlueBox related questions or report a bug here!

Moderators: Lapo, Bax

Post Reply
3eka
Posts: 9
Joined: 09 Jun 2008, 12:50
Contact:

HttpConnection.as - comented code problem

Post 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.
3eka
Posts: 9
Joined: 09 Jun 2008, 12:50
Contact:

Post by 3eka »

Almost forgot: i'm using AS 2.0 API
3eka
Posts: 9
Joined: 09 Jun 2008, 12:50
Contact:

Post by 3eka »

Excuse me, but does somebody answer question here? Is there any support? :?
patso
Posts: 380
Joined: 13 Nov 2006, 13:44
Location: Sofia, Bulgaria

Post 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.
3eka
Posts: 9
Joined: 09 Jun 2008, 12:50
Contact:

Post 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...
Post Reply