Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Decrease the timeout for connect to FAF during the game. #3277

Open
GodFuper opened this issue Nov 24, 2024 · 1 comment
Open

Comments

@GodFuper
Copy link
Contributor

Is your feature request related to a problem?

I have noticed that sometimes when the connection is lost, it becomes more difficult to connect to FAF, especially when this happens during the game.

Describe the solution you'd like

I suggest reducing the timeout between connect. From 30 seconds to 5 seconds for the time when you are in the game.

Describe alternatives you've considered

I've done some tests.

  1. Creating a game.
  2. We are waiting for 1 player.
  3. Let's start the game.
  4. In windows, go to the "Network connections" tab.
  5. Disconnect the Ethernet network adapter for 5-10 seconds.
  6. We are waiting for automatic auto-connection to FAF.

Test1. Timeout 30 seconds.
TEST-1.log
More than 5 connection attempts.
18:19 -> 20:09 = waiting for more than 2 minutes and 9 seconds. That is, an automatic kick in game. It doesn't make sense to wait any longer.
Test2. Timeout 5 seconds.
TEST-2.log
More than 5 connection attempts. On the 6th attempt, the connection is successful.
27:58 -> 28:43 = The connection takes less than a minute and a successful return to the game.

Conclusions:
Perhaps more tests with more test subjects are needed. The connection loss was almost the same. In only one case, we were able to restore the connection in a reasonable time (less than 1.5 minutes).
And in the second case, we waited for more than 2 minutes and could not connect.

@GodFuper
Copy link
Contributor Author

The client costs 60 attempts to connect.
In normal mode: 30*60 = 1800 seconds = 30 minutes
Let's be realistic in an online game, no one will wait for me for 30 minutes.
Considering that the game is waiting for an average of 1.5 minutes and during this time I will at best have time to make 3 reconnects.
The change I propose only affects the "game mode".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant