Closed cubanpit closed 6 years ago
@cubanpit I think this is a good idea. @fhdk: can you check and implement this suggestion?
I can look at it. But if memory serves no ping is used but a request for the state file.
the online check is not using ping either but opens an url and checks the response.
OK, sorry, I have read code without enough attention. So this functions appears unused: https://github.com/manjaro/pacman-mirrors/blob/d0168ecbbc90888a14fd80f2b165d6a3560f587a/pacman_mirrors/functions/httpFn.py#L177-L184
I have discovered the user reporting the problem uses a network behind a proxy, I have asked him to check if pacman-mirrors
works fine when the proxy is set correctly system-wide.
The ping_host()
function is not used. The code was replaced in early stage of development. Just forgot about it - since I do not remove code unless I know the replacement works as expected.
Ok, everything works fine also behind a proxy. Sorry for the wrong bug report.
Some users can't rank mirrors because ICMP packets are filtered on their network, is it possible to use a different method to rank mirrors? I do not know if an HTTP request with
curl
can do the job fairly./bin/time --format=%E curl -s --head http://mirror.dacentec.com/manjaro/