Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

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

Merged
manuelmayer-dev merged 2 commits intomanuelmayer-dev:mainfrom
FrankRay78:Reduce-the-HttpClient-timeout-to-the-fastest-latency-found-so-far
Apr 3, 2025
Merged

Reduce the HttpClient timeout to the fastest latency found so far#8
manuelmayer-dev merged 2 commits intomanuelmayer-dev:mainfrom
FrankRay78:Reduce-the-HttpClient-timeout-to-the-fastest-latency-found-so-far

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants