Search found 57 matches
- 17 Apr 2024, 12:51
- Forum: SFS2X Questions
- Topic: GraalVM support
- Replies: 3
- Views: 2672
Re: GraalVM support
Hi, no, we don't support GraalVM. I also doubt it would offer any significant improvements. JIT compilation is typically better than AOT (especially in our case) since the former is dynamic (i.e. adapts to runtime conditions) whereas AOT is static. Not to say that GraalVM doesn't have its benefits,...
- 14 Apr 2024, 18:48
- Forum: SFS2X Questions
- Topic: API.leaveRoom causes "Can't remove user"
- Replies: 1
- Views: 255
API.leaveRoom causes "Can't remove user"
Very rarely the error "Can't remove user" occurs. SmartFoxServer 2.19.0 Code: for (Room joinedRoom : user.getJoinedRooms()) { if (joinedRoom.containsUser(user)) { API.leaveRoom(user, joinedRoom); } } Stack Trace: com.smartfoxserver.v2.exceptions.SFSRuntimeException: Can't remove user: ( Us...
- 14 Apr 2024, 09:43
- Forum: SFS2X Questions
- Topic: LogoutRequest problem
- Replies: 4
- Views: 173
Re: LogoutRequest problem
Hi, I am not sure what you mean by "too manu logout requests". The error reported is triggered by a Login request that arrives at the server when the session is no longer open. Keep in mind that default Session idle time is only 20 seconds, so if your use case requires longer pauses betwe...
- 01 Apr 2024, 17:47
- Forum: SFS2X Questions
- Topic: LogoutRequest problem
- Replies: 4
- Views: 173
LogoutRequest problem
After too many LogoutRequests "[SFSWorker:Ext:3] api.SFSApi - Login failed: username, session is already expired!" starts to happen.
You can set up a LoginRequest -> LogoutRequest loop to replicate.
SmartFox Server 2.19.0 Windows/Linux
You can set up a LoginRequest -> LogoutRequest loop to replicate.
SmartFox Server 2.19.0 Windows/Linux
- 11 Mar 2024, 15:20
- Forum: SFS2X Questions
- Topic: Socket Exceptions
- Replies: 1
- Views: 139
Socket Exceptions
I caught 3 exceptions from server in production.
I don't know if these have any effect on behavior.
SmartFox Server 2.19.0
I don't know if these have any effect on behavior.
SmartFox Server 2.19.0
- 15 Dec 2023, 20:59
- Forum: SFS2X Questions
- Topic: SmartFox Server does not detect disconnection with network connection lost
- Replies: 3
- Views: 29791
Re: SmartFox Server does not detect disconnection with network connection lost
Hi, if the network is disabled by pulling the ethernet cable or shutting down wifi then yes, that's expected. It's not something special in SFS2X, it's how TCP/IP works. The disconnection will happen but at a later time when the TCP timeout is triggered. To understand better please read this: https...
- 15 Dec 2023, 16:01
- Forum: SFS2X Questions
- Topic: SmartFox Server does not detect disconnection with network connection lost
- Replies: 3
- Views: 29791
SmartFox Server does not detect disconnection with network connection lost
If the network connection is disconnected, SmartFox Server does not know if the user is disconnected or not.
In my tests, if the network connection is lost, the user is never disconnected!
SmartFox 2.19.0
In my tests, if the network connection is lost, the user is never disconnected!
SmartFox 2.19.0
- 07 Dec 2023, 11:38
- Forum: SFS2X C++ API
- Topic: Unreal Engine - Any news?
- Replies: 5
- Views: 32781
Re: Unreal Engine - Any news?
It is so sad. Unity breaks many developer's heart and destroys many of development. In my case, one of the development used Unity but I considered to move the project to unreal. Godot have tons of issues cannot be solved in short time. I am not going to Godot. --- Latest version of unreal: Unreal 5...
- 09 Nov 2023, 15:02
- Forum: SFS2X Questions
- Topic: How can I retrieve the count of online players in the Zone without including NPCs?
- Replies: 1
- Views: 13728
How can I retrieve the count of online players in the Zone without including NPCs?
I want to get the number of online players on the Zone, but how can I do this without including NPCs?
- 20 Oct 2023, 15:30
- Forum: SFS2X Questions
- Topic: removeRoom Extension Bug
- Replies: 1
- Views: 15672
Re: removeRoom Extension Bug
removeRoom destroys the extension but if we call more than one removeRoom, more than one destroy works like this. SmartFoxServer.getInstance().getAPIManager().getSFSApi().removeRoom(room); //Calls destory on extension SmartFoxServer.getInstance().getAPIManager().getSFSApi().removeRoom(room); //Call...
- 20 Oct 2023, 13:26
- Forum: SFS2X Questions
- Topic: removeRoom Extension Bug
- Replies: 1
- Views: 15672
removeRoom Extension Bug
removeRoom destroys the extension but if we call more than one removeRoom, more than one destroy works like this. SmartFoxServer.getInstance().getAPIManager().getSFSApi().removeRoom(room); //Calls destory on extension SmartFoxServer.getInstance().getAPIManager().getSFSApi().removeRoom(room); //Calls...
- 29 Sep 2023, 13:13
- Forum: SFS2X Questions
- Topic: [Feature Request] "X-Forwarded-For" customization
- Replies: 10
- Views: 94370
Re: [Feature Request] "X-Forwarded-For" customization
Just to confirm, X-Forwarded-For works with CloudFlare to get the original IP just fine, it also works with HAProxy. As an aside, CloudFlare's WebSockets are unreliable in my opinion. I would suggest not using them. Cloudflare's websockets are not unreliable, they just have their own standards. *Si...
- 29 Sep 2023, 13:09
- Forum: SFS2X Questions
- Topic: [Feature Request] "X-Forwarded-For" customization
- Replies: 10
- Views: 94370
Re: [Feature Request] "X-Forwarded-For" customization
Just to confirm, X-Forwarded-For works with CloudFlare to get the original IP just fine, it also works with HAProxy. As an aside, CloudFlare's WebSockets are unreliable in my opinion. I would suggest not using them. By sending X-Forwarded-For, the user can change the IP address to custom, but if yo...
- 28 Sep 2023, 10:54
- Forum: SFS2X Questions
- Topic: [Feature Request] "X-Forwarded-For" customization
- Replies: 10
- Views: 94370
Re: [Feature Request] "X-Forwarded-For" customization
I am sorry but I don't get it. :( The "X-Forwarded-For" field gives you the original IP of the client, instead of the address if the proxy connecting to your SFS instance. Isn't this what we're talking about? It's not clear to me what this custom property (CF-Connecting-Ip) does that it i...
- 27 Sep 2023, 19:52
- Forum: SFS2X Questions
- Topic: [Feature Request] "X-Forwarded-For" customization
- Replies: 10
- Views: 94370
Re: [Feature Request] "X-Forwarded-For" customization
Hi, can you clarify what difference does it make? Given that the "X-Forwarded-For" field provides the original IP address of the client, what is the advantage of using the custom header field? Thanks "X-Forwarded-For" is used by proxies to send real ips. This header value needs ...