[MacPorts] #60509: Upgrading ports sometimes breaks internet connection
MacPorts
noreply at macports.org
Wed May 20 20:24:41 UTC 2020
#60509: Upgrading ports sometimes breaks internet connection
---------------------+--------------------
Reporter: iEFdev | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.6.2
Resolution: | Keywords:
Port: |
---------------------+--------------------
Comment (by ryandesign):
Replying to [comment:8 jmroot]:
> Replying to [comment:4 ryandesign]:
> > Possible solutions:
> >
> > 1. We could trim the list of perl cpan [https://github.com/macports
/macports-ports/blob/master/_resources/port1.0/fetch/mirror_sites.tcl
mirrors] to a more reasonable number.
> > 2. MacPorts base could spawn only a `ping` process for each host and
perform the equivalent of the `grep` and `cut` commands using Tcl string
processing.
>
> Why not both? :-)
I agree; we can work on any and all of these items.
Yet another idea might be:
4. MacPorts base could have a hard upper limit of the number of hosts for
which it will check ping times at a time, say 50 or 100. If there are more
hosts than that such as in the case of perl, MacPorts could pick 50 or 100
hosts from the list at random (although maybe the MacPorts mirrors should
always be included). Ideally any excess hosts that were not checked would
be marked for immediate recheck, so that if a user upgrades several perl
modules at once then for the first module maybe not all hosts were pinged
but by the second or third module all of the pingtimes are known.
> > 3. MacPorts base could limit the number of hosts that it checks
simultaneously.
>
> That's not easy to do correctly and efficiently. The pings are run in
parallel so that the overall time for the check is not the sum of the
individual response times (which may be up to 3 seconds in case of a
timeout).
I agree, that's why I'm starting with the easier task with (2).
--
Ticket URL: <https://trac.macports.org/ticket/60509#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list