BlueBox error with Smartfoxserver2 and Unity Web Player

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

andras
Posts: 1
Joined: 29 Feb 2012, 15:36

BlueBox error with Smartfoxserver2 and Unity Web Player

Postby andras » 29 Feb 2012, 15:43

Hi,

I have a problem with Bluebox connection to the server, after a while the connection is dropped.
I implemented an "keep-alive" or "ping" functionality that will send an ExtensionRequest each one minute
but still sometimes the connection is dropped, I get the following error in Unity Web Player log:

[SFS - ERROR] ## BlueBox Error: Error during http request: System.IndexOutOfRangeException: Array index is out of range.

at Sfs2X.Http.SFSWebClient.UploadValuesAsync (System.Uri uri, System.String paramName, System.String encodedData) [0x00000] in <filename unknown>:0 at Sfs2X.Http.SFSWebClient.UploadValuesAsync (System.Uri uri, System.String paramName, System.String encodedData) [0x00000] in <filename unknown>:0

[SFS - ERROR] ## BlueBox Error: Invalid http session !

Unity Version is 3.4
SmartfoxServer version is 2.0.1

Any advice what's wrong?

Thanks.
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Re: BlueBox error with Smartfoxserver2 and Unity Web Player

Postby ThomasLund » 04 Mar 2012, 15:57

BlueBox already has a "pull" command that the client uses to keep connections alive. So no need to implement your own - runs automagic on the backend.

With that said - there is a grey zone where the BlueBox could have its connection dropped. And that is after sending a Connect and before logging in. Those 2 have to come very fast after another - else the server will think you are a dead client and silently kills you off. Nothing the client can do to catch this.

If its a matter of the client loosing its connection after logging in and joining rooms etc - then could sound like a bug. If so, got a repro case?

/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 24 guests