zelytra / BetterFleet

BetterFleet is an innovative, open-source application to help you find an alliance with other players
https://betterfleet.fr
Other
15 stars 2 forks source link

Multiple UDP sockets #343

Open zelytra opened 3 weeks ago

zelytra commented 3 weeks ago

Summary

Some users uncounter problem of undetected server or game status due to multiple (more than 2) UDP connection

Steps to reproduce

Depend on the user config, not reproducible

What is the current bug behavior?

Undetected server or game status

What is the expected correct behavior?

Should find the server and game status

Relevant logs and/or screenshots

[2024-10-16][19:53:27][INFO][better_fleet::fetch_informations] Hostname: desktop-b1oa5k3
[2024-10-16][19:53:27][INFO][better_fleet::fetch_informations] [53224, 65352, 62558, 62202, 62201, 62200, 62199, 62198, 62196, 62194, 62193, 62192, 62191, 62190, 62189, 62188, 62187, 62186, 62185, 62184, 62183, 62182, 62181, 62180, 62179, 52960, 51664, 51662]
[2024-10-16][19:53:27][INFO][better_fleet::fetch_informations] get_udp_connections_powershell: [53224, 65352, 62558, 62202, 62201, 62200, 62199, 62198, 62196, 62194, 62193, 62192, 62191, 62190, 62189, 62188, 62187, 62186, 62185, 62184, 62183, 62182, 62181, 62180, 62179, 52960, 51664, 51662]
[2024-10-16][19:53:26][INFO][better_fleet::fetch_informations] get_udp_connections_powershell
[2024-10-16][19:53:26][INFO][better_fleet::fetch_informations] Using netstat powershell to get main_menu_port
[2024-10-16][19:53:26][INFO][better_fleet::fetch_informations] Loop: ["8580"]

Possible fixes

Change the condition of number of udp connection to an else

zelytra commented 3 weeks ago

Still not fix

zelytra commented 3 weeks ago

The problem does not seem to be related to the client (player side), but rather to the SOT servers. Some players encounter these problems with the same issues.

Current app behavior: If a "corrupted" server is found, when the player leaves this server, the sockets remain open, and the app no longer considers any changes in the app's status or server joins/leaves.