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

Fix: remember the OpenTTD version between disconnects #386

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

TrueBrain
Copy link
Member

The most likely cause people use TCP is because HTTP took more than 60 seconds to download (a fixed bug in 14.0). But the timeout for the TCP connection is also 60s, meaning we lose sight of what version it was.

We can resolve this by keeping a small cache of IP -> version, to find back what version the IP (most likely) had.

It doesn't have to be exact, but a rough estimations really helps out here.

@TrueBrain TrueBrain merged commit 19be5b6 into main Feb 6, 2024
9 checks passed
@TrueBrain TrueBrain deleted the version-in-stats branch February 6, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant