Page 1 of 1

BlueBox error with Smartfoxserver2 and Unity Web Player

Posted: 29 Feb 2012, 15:43
by andras
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.

Re: BlueBox error with Smartfoxserver2 and Unity Web Player

Posted: 04 Mar 2012, 15:57
by ThomasLund
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