Skip to content

Add #5234: Automatic connection retries - #5236

Open
x6c85 wants to merge 1 commit into
multitheftauto:masterfrom
x6c85:feature/5234-connection-retries
Open

Add #5234: Automatic connection retries#5236
x6c85 wants to merge 1 commit into
multitheftauto:masterfrom
x6c85:feature/5234-connection-retries

Conversation

@x6c85

@x6c85 x6c85 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Retry connecting to a server up to 5 times (every 4 seconds) instead of the previous single retry. The connection dialog now shows the current attempt number (e.g. Connecting to ... (attempt 2/5)).

Motivation

Fixes #5234. When a server is temporarily busy or a UDP packet is dropped, users had to manually press Join again. This automates retries so the client keeps trying for 20 seconds total before giving up. Errors like bans, invalid passwords, or a full server still abort immediately without retrying.

Test plan

  • Connect to an offline server and verify 5 retry attempts are shown before timeout
  • Connect to a running server and verify normal connection still works on first attempt
  • Get banned/wrong password and verify no retry occurs

Checklist

  • Your code should follow the coding guidelines.
  • Smaller pull requests are easier to review. If your pull request is beefy, your pull request should be reviewable commit-by-commit.

Previously only one retry was attempted after 4 seconds, with an 8-second
timeout. Now the client retries up to 5 times at 4-second intervals (20s
total) and shows the current attempt number in the connection dialog.
Errors like bans, invalid passwords, or full servers still abort immediately.
@FileEX FileEX added the enhancement New feature or request label Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatic connection retries

2 participants