I found the problem. It is a problem with the client library.
It appears I am not using 1.7.19 which i thoguht i was and I dont know what version it is but the date modified for SmartFox2X.dll is oct 6, 2021. so it must be old.
Search found 155 matches
- 10 May 2023, 17:08
- Forum: SFS2X Questions
- Topic: udp connection
- Replies: 8
- Views: 6909
- 09 May 2023, 20:26
- Forum: SFS2X Questions
- Topic: udp connection
- Replies: 8
- Views: 6909
Re: udp connection
I will try local server, have to set it up.. will post back results later. Yes, testing from Unity Editor. I just checked the logs from Android build, the error is there as well, same steps. 05-09 16:39:18.745 14966 16081 I Unity : [SFS - ERROR] [TCPSocketLayer] General error reading data from socke...
- 09 May 2023, 13:57
- Forum: SFS2X Questions
- Topic: udp connection
- Replies: 8
- Views: 6909
Re: udp connection
Not reusing.
Every connection is a sfs = new SmartFox();
and every reset is a sfs.RemoveAllEventListeners();
Every connection is a sfs = new SmartFox();
and every reset is a sfs.RemoveAllEventListeners();
- 09 May 2023, 11:22
- Forum: SFS2X Questions
- Topic: udp connection
- Replies: 8
- Views: 6909
Re: udp connection
Happening with SFS2X 2.18.0 and 2.19.0 API is 1.7.19 (i think) Unity is 2021.3.21 Unity Android (editor) servers are not local, they are remote. this is 100% consistent. Steps: connect to sfs onlogin callback, init udp udp inited successfully callback disconnect from sfs no errors repeat, but this t...
- 08 May 2023, 17:14
- Forum: SFS2X Questions
- Topic: udp connection
- Replies: 8
- Views: 6909
udp connection
i am unable to get udp connection error free. I am getting the follow errors if UDP is inited. connect to sfs, on login, init udp. udp inited. disconnect connect to sfs, on login, init udp. udp inited. disconnect, error follows subsequent connect, disconnect will also result in the error. only error...
- 13 Apr 2023, 12:23
- Forum: SFS2X Questions
- Topic: db connection leak
- Replies: 9
- Views: 7267
Re: db connection leak
Here is my setup for dbs. try { con = DatabaseFactory.getInstance().GetDBManager().getConnection(); pstm = con.prepareStatement("select * from abc"); rs = pstm.executeQuery(); while (rs.next()) { // stuff } } catch (SQLException e) { Log.fatal( e.getLocalizedMessage(), e); } finally { SqlU...
- 11 Apr 2023, 15:11
- Forum: SFS2X Questions
- Topic: db connection leak
- Replies: 9
- Views: 7267
Re: db connection leak
Since it has been working normal for months, has anything been changed? Things have changed, there are constant updates to the code. This can be fixed by using two different limits. Set the limit in MySQL to 100 (just as an example) and the limit on the SFS side to 90, so that you will never run in...
- 10 Apr 2023, 11:27
- Forum: SFS2X Questions
- Topic: db connection leak
- Replies: 9
- Views: 7267
Re: db connection leak
DB connections has been normal for months. There are never active connections stuck for more than a 1 second. Idle connections has never been above the defined value which is 10. Yesterday, there were 100+ active connections stuck in sleeping status sleeping for hours. So they were likely created ne...
- 09 Apr 2023, 21:38
- Forum: SFS2X Questions
- Topic: db connection leak
- Replies: 9
- Views: 7267
db connection leak
so just today, one of three of the servers running the same code had a db connection leak.. there were 100+ active connections sleeping. the servers have been running for 2 months without issue. i've check the code and all db connections were closed in finally block. how could this have happened whe...
- 11 Mar 2023, 14:05
- Forum: SFS2X Questions
- Topic: Amazon EC2
- Replies: 2
- Views: 2503
Re: Amazon EC2
CPU/RAM is under utilization. Just noticed another issue where the same code deployed on EC2 and other host. there is this part of the code that gen a number to determine the loot drop. the drop rolling is fine on other host, but on EC2, it is ALWAYS only dropping a particular item, which is also a ...
- 10 Mar 2023, 16:36
- Forum: SFS2X Questions
- Topic: Amazon EC2
- Replies: 2
- Views: 2503
Amazon EC2
Anyone using Amazon EC2 for their server and notice weird issues? I just deployed our game to Amazon EC2 and noticing weird issues that isn't happening on our other non amazon hosts. I am suspecting that packets aren't reaching amazon or amazon is discarding the packet as the issue that we are seein...
- 03 Mar 2023, 18:41
- Forum: SFS2X Questions
- Topic: Admin tool Log Viewer custom file load
- Replies: 14
- Views: 24771
Re: Admin tool Log Viewer custom file load
Ok, i found the problem. Not sure why it is, but after changing the project's JRE System Library from JavaSE-17 to JavaSE-1.8 fixed the issue.
- 03 Mar 2023, 18:33
- Forum: SFS2X Questions
- Topic: Admin tool Log Viewer custom file load
- Replies: 14
- Views: 24771
Re: Admin tool Log Viewer custom file load
ok, this is very weird. your version of the jar works.
i copied your java and rebuilt and it fails for me.
the structure of both jars are identical..
im stumped.
i copied your java and rebuilt and it fails for me.
the structure of both jars are identical..
im stumped.
- 03 Mar 2023, 16:12
- Forum: SFS2X Questions
- Topic: Admin tool Log Viewer custom file load
- Replies: 14
- Views: 24771
Re: Admin tool Log Viewer custom file load
Its valid jar.
Please confirm my setup.
build jar file as whatever.jar and move it to __lib__ dir
add module to admintool.xml
duplicate icon.svg and rename it to the module id.svg
reboot server
Please confirm my setup.
build jar file as whatever.jar and move it to __lib__ dir
add module to admintool.xml
duplicate icon.svg and rename it to the module id.svg
reboot server
- 03 Mar 2023, 12:35
- Forum: SFS2X Questions
- Topic: Admin tool Log Viewer custom file load
- Replies: 14
- Views: 24771
Re: Admin tool Log Viewer custom file load
<module id="GameManager" name="Game Manager" description="Game management tools" className="GM.GameManagerReqHandler"/>