nroi / flexo

a central pacman cache
MIT License
172 stars 10 forks source link

Include connect_timeout option for latency tests #37

Open nroi opened 3 years ago

nroi commented 3 years ago

DNS lookups can take a bit of time, but DNS requests are cached, so we don't want to exclude mirrors just because the DNS lookup took a bit longer than usual. However, we currently only use a single timeout in our latency tests, which is the total timeout of the entire request.

We should also add the connect_timeout so that we can exclude high-latency mirrors without excluding mirrors just because DNS took a bit longer.