Search found 19629 matches

by Lapo
22 May 2018, 12:35
Forum: SFS2X Questions
Topic: Looping task for ServerBaseEventHandler
Replies: 2
Views: 8

Re: Looping task for ServerBaseEventHandler

Hi,
you can use the Task scheduler.
See here for the details:
https://smartfoxserver.com/blog/how-to- ... extension/

Hope it helps
by Lapo
19 May 2018, 14:05
Forum: SFS2X Questions
Topic: Websocket request rejected
Replies: 3
Views: 28

Re: Websocket request rejected

ducbot wrote:Thank you Lapo.

My issue was fixed by changing the UseWebSocket from WSS to WSS_BIN.

Good to hear that
Have you ever tried Cloudflare for WSS ?

I am not sure what you mean by that. Can you elaborate?

Thanks
by Lapo
19 May 2018, 14:04
Forum: SFS2X Questions
Topic: User disconnected immediately after connection
Replies: 2
Views: 33

Re: User disconnected immediately after connection

Hi,
you're running a very old server and API versions. In any case, what happens on the client side, did you check for error messages?
I'd recommend checking in the browser's console.

Also which browser are you using for testing?
Thanks
by Lapo
18 May 2018, 07:21
Forum: SFS2X Questions
Topic: Server CPU Utilization spikes on multiple users disconnecting at the same time
Replies: 6
Views: 43

Re: Server CPU Utilization spikes on multiple users disconnecting at the same time

"1) a scenario where 10K connections all go down at once is extremely unlikely" Actually Lapo, we have faced this issue recently when the ISP service went down. Sure, but it's not common right? It's not going to happen every day. If it was you should have to change ISP because no one want...
by Lapo
18 May 2018, 07:09
Forum: SFS2X Questions
Topic: Websocket request rejected
Replies: 3
Views: 28

Re: Websocket request rejected

HI, it looks like you're using the wrong protocol. The server is expecting a binary protocol but the client is sending text. You can either switch the configuration on the server side (to force Text) or pass a parameter in the constructor of the API to use the binary protocol. Unless you're using an...
by Lapo
18 May 2018, 07:05
Forum: SFS2X Questions
Topic: CPU/network peaks after lots of "User cannot invoke Room extension if he's not joined in that Room."
Replies: 3
Views: 13

Re: CPU/network peaks after lots of "User cannot invoke Room extension if he's not joined in that Room."

Hi, peaks don't look too bad or too frequent. In the screenshot the latest peak is definitely linked to the spike in outgoing traffic below. In any case for only 100 CCU it shouldn't happen. If you have a dev version of your server (with the same Extensions) you could run 100 simulated clients and s...
by Lapo
17 May 2018, 16:39
Forum: SFS2X Questions
Topic: CPU/network peaks after lots of "User cannot invoke Room extension if he's not joined in that Room."
Replies: 3
Views: 13

Re: CPU/network peaks after lots of "User cannot invoke Room extension if he's not joined in that Room."

Hi, we have this problem where random peaks would appear and at this point our only suspect is this log: 17 May 2018 | 14:58:03,086 | WARN | SFSWorker:Ext:18 | controllers.v290.ExtensionReqController | | com.smartfoxserver.v2.exceptions.SFSExtensionException: User cannot invoke Room extension if he...
by Lapo
17 May 2018, 14:56
Forum: SFS2X iPhone / iPad / OSX API
Topic: Fatal Exception: SFSCodecException Request rejected: No Action ID in request!
Replies: 6
Views: 29

Re: Fatal Exception: SFSCodecException Request rejected: No Action ID in request!

Hi,
those are very, very old versions :)
SFS2X 2.8 is likely 5-6 years old and so is the client API. I would highly recommend to update to the latest release. We have released many bug fixes and improvements since then.

Thanks
by Lapo
17 May 2018, 14:54
Forum: SFS2X Questions
Topic: Server CPU Utilization spikes on multiple users disconnecting at the same time
Replies: 6
Views: 43

Re: Server CPU Utilization spikes on multiple users disconnecting at the same time

I don't think I can do that. :) CPUs come in all sizes, cores, native threads, clock speeds and such. It is not possible to provide metrics as to how X amount of disconnections can impact the CPU with all these variables. Also I think you're worrying too much about something that is never been an is...
by Lapo
17 May 2018, 07:34
Forum: SFS2X Questions
Topic: Server CPU Utilization spikes on multiple users disconnecting at the same time
Replies: 6
Views: 43

Re: Server CPU Utilization spikes on multiple users disconnecting at the same time

Hi,
if you disconnect 10K users at once you're indeed asking the server to do a lot of clean up job. It is expected to see a CPU spike.

Every user disconnect requires cleaning rooms, variables, buddy lists, updating all other clients etc...

Cheers
by Lapo
17 May 2018, 07:31
Forum: SFS2X iPhone / iPad / OSX API
Topic: Fatal Exception: SFSCodecException Request rejected: No Action ID in request!
Replies: 6
Views: 29

Re: Fatal Exception: SFSCodecException Request rejected: No Action ID in request!

we used SFS2X 1.3.6 and the crash very radom we cannot reproduce it

There is no SFS2X 1.3.6
Please recheck what version of the server (SFS2X) and the client API you're using and let us know

Thanks
by Lapo
17 May 2018, 07:29
Forum: SFS2X Java / Android API
Topic: android studio proguard config
Replies: 3
Views: 18

Re: android studio proguard config

Thanks
by Lapo
16 May 2018, 15:32
Forum: SFS2X Questions
Topic: Unable to reconnect
Replies: 13
Views: 476

Re: Unable to reconnect

I would have to check with a colleague, but the variable you're referring to is just for tests and it's not allowed to work in production. In fact "unfrozen" connections cannot be reconnected (they don't have a valid reconnection timer). The freeze/unfreeze mechanism is necessary for the S...

Go to advanced search