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

Reduce the HttpClient timeout to the fastest latency found so far #8

Conversation

FrankRay78
Copy link
Contributor

When testing the latency of each speedtest server, sometimes a server will timeout after a long while (aka throws a socket exception).

This change avoids unnecessary waiting by successively reducing the HttpClient timeout to the fastest server/latency found so far.

(ie. do not wait for servers where the response time becomes longer than the fastest).

@manuelmayer-dev manuelmayer-dev merged commit fb508e2 into manuelmayer-dev:main Apr 3, 2025
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.

2 participants