slow distfiles mirror

Daniel J. Luke dluke at
Mon Aug 8 11:18:13 PDT 2016

On Aug 8, 2016, at 1:58 PM, Ryan Schmidt <ryandesign at> wrote:
> On Aug 8, 2016, at 12:49 PM, Daniel J. Luke wrote:
>> Ryan said: "it's possible for a server to respond quickly to pings but slowly to actual file transfers"
>> I'm interested in what prompted that.
> I just imagine that on some networks, it might be possible that the small amount of data used for pings could transfer quickly, while nevertheless that the larger amount of data used to actually transfer files might be slower.

I'm not sure how that would work (or, in fact, what 'faster' and 'slower' means in this case).

In the specific case of our mirrors, they all should have adequate bandwidth that the 'best' server for any individual is going to be the one that is closest (in network latency) to the end user.

The 'ping test' is an attempt to figure out which host is closest.

> I thought this was something that had happened to me on some network at some point in the past.

actual details of any failures of MacPorts mirror selection would be useful so the system could be improved.

> It's also possible that all pings failed, in which case MacPorts does not know which server is best. In that case, I'm not sure whether MacPorts tries servers in the order listed in the tcl file or alphabetical order or what.

fetch_common.tcl sets a pingtime of 10000 for hosts that fail [comment says "ping failed, so put it last in the list (but before the fallback mirrors)"]

> In any case I'm not an expert on network infrastructure. I just know that our mirrors usually work fine, so when a user reports a problem with one of them, it's usually because of something on the user's system like a virus scanner or firewall, or something on the user's network, or some problem with the user's ISP, or a problem somewhere between the user's ISP and the network the mirror is on.

If there are cases where MacPorts mirror selection isn't working properly, we should try to address them. If it is working fine, we should avoid unnecessarily telling people that it might be broken.

Daniel J. Luke

More information about the macports-users mailing list