flexo icon indicating copy to clipboard operation
flexo copied to clipboard

[Potential Bug] JSON fallback is not used

Open nroi opened this issue 2 years ago • 1 comments

Describe the bug If the JSON from the official JSON endpoint cannot be parsed, then we expect that the fallback is used from our git repo: https://github.com/nroi/archlinux-mirrors-status-fallback but this does not seem to work.

More details here: https://github.com/nroi/flexo/issues/105

nroi avatar May 31 '23 19:05 nroi

Because of the recent attacks on arch, this has been effecting me setting up a new installation. I've been messing around with fixing it myself and figured out it will eventually use the fallback. The main issue is that the primary url fetch is taking 135 seconds to timeout and it tries 8 times before using the fallback.

I'd like to have the ability to adjust primary timeout and number of attempts. Some code made by me might need some work, as I haven't made anything in rust before, but would you be open to a PR that adds the mirror list json timeout and number of attempts as a config option?

HoodedDeath avatar Sep 02 '25 04:09 HoodedDeath