Force Using BlueBox

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

armanbm
Posts: 17
Joined: 17 Nov 2016, 06:32

Force Using BlueBox

Postby armanbm » 05 May 2018, 14:08

Hi.
I've already seen these topics:
https://www.smartfoxserver.com/forums/viewtopic.php?t=6279
https://www.smartfoxserver.com/forums/viewtopic.php?t=4427
but they are too old, and the method is not optimal, it forces socket to fail!:

Code: Select all

 var wrongPortToMakeSocketFail:int = 0000;
 _sfs.connect(_sfs.config.host,wrongPortToMakeSocketFail);


is there any better method in sfs2x that force to use blue box?
armanbm
Posts: 17
Joined: 17 Nov 2016, 06:32

Re: Force Using BlueBox

Postby armanbm » 07 May 2018, 06:52

Any idea?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Force Using BlueBox

Postby Lapo » 07 May 2018, 07:11

Hello,
that's still the standard method. The Bluebox should always be used as a backup plan when sockets are not available, not as first choice.
Forcing every client to run via HTTP tunnel would be a very sub-optimal way of using SFS2X.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
armanbm
Posts: 17
Joined: 17 Nov 2016, 06:32

Re: Force Using BlueBox

Postby armanbm » 07 May 2018, 09:17

Thanks for the reply,

does using blue box have any down side beside slower data send/receive?
does it use more RAM or CPU?

the internet is not stable from where i am using SFS2X
so its not possible to have a stable socket connection.
i'm having HRC+ system calling "I AM Disconnected, reconnecting..." over and over and no one can play my game any more
hopefully it is a turn base game and it is not real-time so i'm going to force all of my clients to use Blue Box in my next update

do you have any other idea?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Force Using BlueBox

Postby Lapo » 07 May 2018, 11:09

armanbm wrote:Thanks for the reply,

does using blue box have any down side beside slower data send/receive?

Yes, scalability. The web server can't scale as high as the SFS2X socket engine.

does it use more RAM or CPU?

Probably a bit more CPU, but it's noticeable only in the 1000s of CCU.

the internet is not stable from where i am using SFS2X
so its not possible to have a stable socket connection.

Are you hosting the server in a hosting facility? I ask because hosting provider normally offer very stable connectivity.

i'm having HRC+ system calling "I AM Disconnected, reconnecting..." over and over and no one can play my game any more
hopefully it is a turn base game and it is not real-time so i'm going to force all of my clients to use Blue Box in my next update


Have you tested if using BlueBox really improves client stability so much?
I ask because if the network is so bad as you say that might not be enough either.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 63 guests