Search found 20419 matches

by Lapo
20 Jun 2019, 07:17
Forum: SmartFoxServer 1.x Discussions and Help
Topic: need help in "bList"
Replies: 12
Views: 137

Re: need help in "bList"

What's the purpose of this request?
From a SFS development standpoint it makes no sense, and it looks suspicious as it makes it look like you're trying to hack something that already exists.
by Lapo
19 Jun 2019, 09:25
Forum: SFS2X Questions
Topic: Server fails with "Too many open files" exceptions and 500K+ file descriptors in CLOSE_WAIT state
Replies: 9
Views: 99

Re: Server fails with "Too many open files" exceptions and 500K+ file descriptors in CLOSE_WAIT state

We've have taken another look at the test that has now been running for ~48 hours and we still have no evidence of leaked connections. During the past two days we haven't even seen anything even remotely suspicious about lingering connections, so I am not convinced there's any issue with either Jett...
by Lapo
19 Jun 2019, 07:57
Forum: SFS2X Questions
Topic: Persistent server variable with static room
Replies: 2
Views: 29

Re: Persistent server variable with static room

Hi, The http://docs2x.smartfoxserver.com/AdvancedTopics/room-persistence-api says that there's an error when trying to create persistent room vars with a static room, which is what I run into. I can get the one variable to be saved, but it messes up my initialization code. Yes, because when you use ...
by Lapo
19 Jun 2019, 07:43
Forum: SFS2X Questions
Topic: Server fails with "Too many open files" exceptions and 500K+ file descriptors in CLOSE_WAIT state
Replies: 9
Views: 99

Re: Server fails with "Too many open files" exceptions and 500K+ file descriptors in CLOSE_WAIT state

Hi Lapo, Thank you for looking into this! We actually might have this compression native memory leak you mentioned before. 2k not closed connections should not eat up 3G of memory. Here is top command for the process: 9670 smartfox 20 0 11.486g 6.553g 7680 S 13.0 87.9 77:48.19 java Virtual memory e...
by Lapo
18 Jun 2019, 16:17
Forum: SFS2X Questions
Topic: Received fatal alert: handshake_failure
Replies: 6
Views: 37

Re: Received fatal alert: handshake_failure

No problem. I am glad you found the cause :)

Cheers
by Lapo
18 Jun 2019, 15:06
Forum: SFS2X Questions
Topic: Received fatal alert: handshake_failure
Replies: 6
Views: 37

Re: Received fatal alert: handshake_failure

Hi,
what exactly is slow? The response times?
Have you checked the ping times from client to server?
Is the server state healthy? Meaning there are no major CPU/Memory spikes during normal activity?

Cheers
by Lapo
18 Jun 2019, 13:56
Forum: SFS2X Questions
Topic: [NEW] SFS2X 2.13.6 available!
Replies: 0
Views: 36

[NEW] SFS2X 2.13.6 available!

SmartFoxServer 2X Patch 2.13.6 is available for download. The patch can be applied to any existing SFS2X 2.13.x, while if you're running an older release you will first need to download the base version (2.13.0) from here . Download the SFS2X 2.13.6 patch from here Release notes: [FIX] patched issu...
by Lapo
18 Jun 2019, 13:22
Forum: SFS2X Questions
Topic: Creating Room
Replies: 4
Views: 24

Re: Creating Room

Hi, in order to see what Rooms exist in a certain Zone at runtime you need to use the Zone Monitor module from the AdminTool. The Zone Configurator just shows you the Zone settings, not what is going on at runtime. For more on this I'd recommend to check the documentation: http://docs2x.smartfoxserv...
by Lapo
18 Jun 2019, 10:16
Forum: SFS2X Questions
Topic: Server fails with "Too many open files" exceptions and 500K+ file descriptors in CLOSE_WAIT state
Replies: 9
Views: 99

Re: Server fails with "Too many open files" exceptions and 500K+ file descriptors in CLOSE_WAIT state

Hi, we have been running another test for over 24 hours and we'll be letting it run for the next few days. The test setup is as follows: » SmartFoxServer 2X 2.13.5 running on an EC2 t2.micro instance, Ubuntu 18.04.2 LTS » Java stress test tool (using standard SFS2X Java client API), running on an EC...
by Lapo
18 Jun 2019, 07:43
Forum: SFS2X Questions
Topic: ban ip from admin
Replies: 1
Views: 14

Re: ban ip from admin

Hi, no, you can only ban by user name. Typically banning by IP address is not very efficient as users are likely behind a dynamic IP and the banishment can be easily circumvented. Also, sometimes there can be multiple users behind the same IP (such as a school, office or public network access), so y...
by Lapo
17 Jun 2019, 14:22
Forum: SFS2X Questions
Topic: Creating Room
Replies: 4
Views: 24

Re: Creating Room

Hi, you need to pass the "fireClientEvent" flag set to false. This is because you're creating the Room in the init() method of you Extension. Extensions are initialized before the network engine is ready so aforementioned flag must be explicitly set to false. In alternative you could move ...
by Lapo
17 Jun 2019, 10:49
Forum: SmartFoxServer 1.x Discussions and Help
Topic: How to make (login in a flash game) work using smart fox server pro?‏
Replies: 6
Views: 229

Re: How to make (login in a flash game) work using smart fox server pro?‏

The question is not clear. In order for the custom login process to check a User's credentials, these credentials (e.g. login name and password) must be stored somewhere. Be it on local disk or database, typically. In your opening post you said you already connected SFS PRO with the database, so I a...
by Lapo
17 Jun 2019, 10:44
Forum: SFS2X Questions
Topic: Correct method to update UserVariable
Replies: 4
Views: 28

Re: Correct method to update UserVariable

Yes, those that are already set are not "forgotten". :) In the list of variables you want to set you typically pass only what needs to be changed. The server then checks which have really changed and sends only those. So in case you set a variable to its current value it won't be transmitt...
by Lapo
17 Jun 2019, 08:09
Forum: SFS2X Questions
Topic: Correct method to update UserVariable
Replies: 4
Views: 28

Re: Correct method to update UserVariable

Hi,
just update that variable. The USER_VARIABLE_UPDATE will only send what is changed.
The method to use is the one from the SFSApi class, called setUserVariables()

Extension code example:

Code: Select all

getApi().setUserVariables(...);


Cheers

Go to advanced search