Search found 16 matches

by trungnt85
11 Dec 2017, 01:38
Forum: SFS2X Java / Android API
Topic: Prevent Smartfox from DDOS
Replies: 3
Views: 792

Re: Prevent Smartfox from DDOS

Thank you Lapo,

If attacks come from same IP I can use IP filter but I dealt with attacks from wide range of IPs, have to setup firewall already
by trungnt85
09 Dec 2017, 04:03
Forum: SFS2X Java / Android API
Topic: Prevent Smartfox from DDOS
Replies: 3
Views: 792

Prevent Smartfox from DDOS

Hi,

I'm currently deal with massive attack DDOS, how can I deal with this, like setup backup smartfox server instance?
by trungnt85
11 Jul 2017, 03:04
Forum: SFS2X Questions
Topic: CPU Usage increased dramatically
Replies: 6
Views: 1147

Re: CPU Usage increased dramatically

Image
Image

Please check above images, SFSWorker extension take up 95% CPU usage
by trungnt85
10 Jul 2017, 04:05
Forum: SFS2X Questions
Topic: CPU Usage increased dramatically
Replies: 6
Views: 1147

Re: CPU Usage increased dramatically

As I ran top command on server, Java took 300% CPU, each user logged in will result in 100% increase
by trungnt85
10 Jul 2017, 01:42
Forum: SFS2X Questions
Topic: CPU Usage increased dramatically
Replies: 6
Views: 1147

Re: CPU Usage increased dramatically

Yes, it's issue with the database I guess. I posted here so anyone did deal with same problem might provide a solution. Kind of weird though
by trungnt85
09 Jul 2017, 12:06
Forum: SFS2X Questions
Topic: CPU Usage increased dramatically
Replies: 6
Views: 1147

CPU Usage increased dramatically

Hi, I have a problem as following: Same smartfoxserver instance running on ubuntu 16.04.1, if zone extension connect to mysql instance running on same server (mysql 5.7.18) CPU usage increased dramatically whenever new user login ( 6-7% / per user). But if I change to mysql instance running on test ...
by trungnt85
06 Jul 2017, 03:39
Forum: SFS2X Questions
Topic: Client IP for websockets behind a nginx proxy
Replies: 9
Views: 2506

Re: Client IP for websockets behind a nginx proxy

Thanks Lapo,

For some reason I cannot upgrade client library to support secure socket yet, might have to leave it to next phase.
by trungnt85
05 Jul 2017, 10:31
Forum: SFS2X Questions
Topic: Client IP for websockets behind a nginx proxy
Replies: 9
Views: 2506

Re: Client IP for websockets behind a nginx proxy

Hi, My problem is I have my game on iOS, Android and Web. I don't enable WSS on my Smartfox server, it's all okay till I need to deploy web version under secure domain, so I have to establish a proxy, on which I secure connect to specific port then proxy will pass the request to Smartfox server. But...
by trungnt85
05 Jul 2017, 09:45
Forum: SFS2X Questions
Topic: Client IP for websockets behind a nginx proxy
Replies: 9
Views: 2506

Re: Client IP for websockets behind a nginx proxy

Hi Lapo,

Is there any way I can get specific headers from a connection?
by trungnt85
17 Jun 2017, 07:53
Forum: SFS2X HTML5 / JavaScript API
Topic: HRC+ with javascript client
Replies: 10
Views: 1871

Re: HRC+ with javascript client

Is there any solution so I can implement HRC with html5 client. My problem is I want to let user to rejoin to last joined room when the application hang and user have to kill it from background to start again
by trungnt85
17 Jun 2017, 02:30
Forum: SFS2X HTML5 / JavaScript API
Topic: HRC+ with javascript client
Replies: 10
Views: 1871

Re: HRC+ with javascript client

I assume that with html5 web socket library, when user kills app from background, it'll send disconnect request to server
by trungnt85
17 Jun 2017, 02:19
Forum: SFS2X HTML5 / JavaScript API
Topic: HRC+ with javascript client
Replies: 10
Views: 1871

Re: HRC+ with javascript client

So with html web socket library, and I config ZoneConfigurator > User Max Idle Time with value 120, it does keep keep user connected within 120s, right? Hi, I do need to confirm this. I know html 5 not support HRC, so does Smartfox server still keep connection for logged in user within thin 120 sec...
by trungnt85
16 Jun 2017, 09:50
Forum: SFS2X HTML5 / JavaScript API
Topic: HRC+ with javascript client
Replies: 10
Views: 1871

Re: HRC+ with javascript client

So with html web socket library, and I config ZoneConfigurator > User Max Idle Time with value 120, it does keep keep user connected within 120s, right?
by trungnt85
16 Jun 2017, 09:37
Forum: SFS2X HTML5 / JavaScript API
Topic: HRC+ with javascript client
Replies: 10
Views: 1871

Re: HRC+ with javascript client

Sometimes I got this error log Exception: com.smartfoxserver.v2.exceptions.SFSRuntimeException Message: -Unexpected- Cannot find any User for Session: { Id: 65, Type: WEBSOCKET, Logged: Yes, IP: 127.0.0.1:37560 } +--- --- ---+ Stack Trace: +--- --- ---+ com.smartfoxserver.v2.SmartFoxServer.onSession...
by trungnt85
16 Jun 2017, 09:32
Forum: SFS2X HTML5 / JavaScript API
Topic: HRC+ with javascript client
Replies: 10
Views: 1871

Re: HRC+ with javascript client

yes, I did implement save game logic on server. I have a version of my game, developed in Objective C, once user remove app from background, connection is not terminated by Smartfox server yet, then user can login again, restore his game state.
Is this case accidentally support by HRC+?

Go to advanced search