Ignore MisbehavingServers rather than fail with an error

Ryan Schmidt ryandesign at macports.org
Wed Jan 11 10:26:34 PST 2012


On Jan 3, 2012, at 10:37, Joshua Root wrote:

> On 2012-1-4 03:34 , Jeremy Lavergne wrote:
>>> How are you planning to tell which checksum mismatches are from bad DNS
>>> lookups and which are from a stealth update or broken proxy? Downloading
>>> the distfile from every one of the potentially dozens of mirrors is not OK.
>> 
>> I think he was going off the mime type (HTML).
> 
> Ah yeah, that distinguishes it from stealth updates anyway.

Yes. My patch assumes that if the downloaded file is HTML (according to the "file" command), but does not have an .htm or .html extension on its name, then it is a misbehaving DNS server.

Do you anticipate a broken proxy causing a problem? How so?




More information about the macports-dev mailing list