Ignore MisbehavingServers rather than fail with an error

Arno Hautala arno at alum.wpi.edu
Sun Apr 8 05:02:39 PDT 2012


On Sun, Apr 8, 2012 at 07:42, Ryan Schmidt <ryandesign at macports.org> wrote:
>
> Let's discuss it now. (Or, tomorrow; I need to sleep.) I want this change in MacPorts 2.1.0. Please help me understand what your objections are.
>
> [...]
>
> and raised a second concern about proxy servers, which I did not understand

If I may interject.

I think the proxy issue is if there is an error on the user's end
(misconfigured proxy, unacknowledged hotel wireless terms, etc.) this
change could lead to port downloading from multiple sources and
reporting that each is misbehaving. The correct fix in this case is on
the user.

Downloading multiple times is a waste, but shouldn't be too heavy.
It's not like this would download the full distfile and the HTML error
page every time. You could always cache the checksum for the previous
fetch and then report to the user that it may be a misbehaving server
/ bad proxy if subsequent fetches match. Though I can see how a bad
proxy wouldn't necessarily deliver the exact same payload every time.
In my opinion, grabbing an error page from every mirror server before
reporting a misbehaving server isn't an unacceptable option.

-- 
arno  s  hautala    /-|   arno at alum.wpi.edu

pgp b2c9d448


More information about the macports-dev mailing list