Search found 17 matches
- 30 Sep 2018, 17:12
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Logging Dropped Messages (SFS Pro)
- Replies: 1
- Views: 3742
Logging Dropped Messages (SFS Pro)
Hello, I'm wondering if it's possible to log dropped messages. Recently I've noticed the server will kick everyone off and and the dropped messages increases by a huge amount, 20-30k in the admin tool. I suspect some sort of exploit/bug abuse is happening, but I'm not sure where I should start inves...
- 28 Sep 2018, 19:25
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Implementing Java Thread Pool in AS, Passing Parameters
- Replies: 11
- Views: 11209
Re: Implementing Java Thread Pool in AS, Passing Parameters
Hmm, I see. Thanks for the help.
One last unrelated question. Is it possible to get the size (in bytes) of a packet sent to the server via extension code?
One last unrelated question. Is it possible to get the size (in bytes) of a packet sent to the server via extension code?
- 27 Sep 2018, 17:39
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Implementing Java Thread Pool in AS, Passing Parameters
- Replies: 11
- Views: 11209
Re: Implementing Java Thread Pool in AS, Passing Parameters
The runnable in the aforementioned example simply broadcasts a player's movement back to any clients that need to be updated about the change. This currently takes up a large % of the server's execution time because of the frequency of the updates & because of how many users need to be sent the ...
- 27 Sep 2018, 17:16
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Implementing Java Thread Pool in AS, Passing Parameters
- Replies: 11
- Views: 11209
Re: Implementing Java Thread Pool in AS, Passing Parameters
Hmm, I see. Would something this simple be enough to get rid of the concurrency issues, or would a new object also have to be made? function handleRequest(cmd, params, user, fromRoom, protocol){ if(cmd == "m"){ handleMovementObj.params = params; handleMovementObj.user = user; _global.threa...
- 27 Sep 2018, 17:02
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Implementing Java Thread Pool in AS, Passing Parameters
- Replies: 11
- Views: 11209
Re: Implementing Java Thread Pool in AS, Passing Parameters
Hey again Lapo, so I've been playing around with this and have threaded some parts of my code via this method function handleRequest(cmd, params, user, fromRoom, protocol){ if(cmd == "m"){//thread this handleMovementObj.params = params; handleMovementObj.user = user; _global.threadPool.exe...
- 25 Sep 2018, 17:01
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Implementing Java Thread Pool in AS, Passing Parameters
- Replies: 11
- Views: 11209
Re: Implementing Java Thread Pool in AS, Passing Parameters
Thanks for the help Lapo, that's exactly what I was looking for.
For anyone else reading this thread, the example Lapo provided works perfectly, as long as you create a runnable from the object.
For anyone else reading this thread, the example Lapo provided works perfectly, as long as you create a runnable from the object.
Code: Select all
run = new java.lang.Runnable(obj);
executor.execute(run);
- 24 Sep 2018, 17:36
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Implementing Java Thread Pool in AS, Passing Parameters
- Replies: 11
- Views: 11209
Implementing Java Thread Pool in AS, Passing Parameters
Hello, I'm currently attempting to implement a java thread pool in my AS code, so that certain requests in the handleRequest function can be threaded. Currently, my code is looking like this: inside the init function: _global.threadPool = new java.util.concurrent.Executors.newFixedThreadPool(10); ha...
- 01 Nov 2017, 10:23
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: XML Attack, Server Issues
- Replies: 1
- Views: 4446
XML Attack, Server Issues
I've recently been having some issues with my server. Before I being, here are the specs: Server Version SFS Pro 1.6.6 patched to 1.6.19 OS Ubuntu Server 12.04 "Precise Pangolin" LTS CPU Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz Cores : 12 Cache : 15360KB RAM 4x 32GB Disks 2 x 2000 GB Moth...
- 20 Dec 2015, 00:42
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Odd Error
- Replies: 10
- Views: 13328
Re: Odd Error
Hmm, okay. Thanks for the help. While I have you here, would you mind answering a question unrelated to this matter? Imagine running two instances of SFS on the same computer. Both SFS instances connect to the same database. I remember reading somewhere that database executions are thread safe, but ...
- 18 Dec 2015, 17:02
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Odd Error
- Replies: 10
- Views: 13328
Re: Odd Error
All I've been able to figure out so far is it happens before a user logs on, just before the loginRequest event is fired.
- 09 Dec 2015, 11:54
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Odd Error
- Replies: 10
- Views: 13328
Re: Odd Error
I'll do some testing and let you know.
- 09 Dec 2015, 08:54
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Odd Error
- Replies: 10
- Views: 13328
Re: Odd Error
The server is running on Ubuntu 12.04. The default firewall is disabled, and I've not installed any others. The client uses Adobe Flash Player with AS2, the SWF is built for version 11.2. The server is running version 1.6.18. The client API I believe is 1.6.6, or whichever the version that is includ...
- 08 Dec 2015, 22:32
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Odd Error
- Replies: 10
- Views: 13328
Re: Odd Error
Hey Lapo, thanks for the quick response. In my case, I'm not so sure it has to do with fake clients. There are hundreds of different IP addresses, many from seemingly valid users, and I've even encountered my own IP a couple times. Could I be causing malformed requests in my server logic somewhere? ...
- 06 Dec 2015, 04:55
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Odd Error
- Replies: 10
- Views: 13328
Odd Error
After recently applying the 1.6.18 patch (from 1.6.6) I've been encountering this error once or twice every second, continuously. [ WARNING ] [id: 11] (SmartFoxServer.dispatchEvent): Unknown event type: , Disconnecting: java.nio.channels.SocketChannel[connected local=/XX remote=/YY] Where XX is my s...
- 08 May 2014, 20:25
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: SFS Pro on Ubuntu not reading Mysql drivers
- Replies: 0
- Views: 9979
SFS Pro on Ubuntu not reading Mysql drivers
I've download and placed the mysql driver into SmartfoxServerPRO_1.6.6/jre/lib/ext, however I'm still getting getting the error that the driver can't be loaded. I've looked through a few similar threads but haven't found a solution. I'm running a Ubuntu 12.04 x64 VPS. The error I'm getting: * Any he...