[MacPorts] #57720: preferred_hosts has no effect on archive_site_local

MacPorts noreply at macports.org
Tue Dec 4 14:20:27 UTC 2018


#57720: preferred_hosts  has no effect on archive_site_local
-------------------------+----------------------------
  Reporter:  ryandesign  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:  MacPorts 2.6.0
 Component:  base        |    Version:  2.5.99
Resolution:              |   Keywords:
      Port:              |
-------------------------+----------------------------

Comment (by ryandesign):

 I originally thought that multiple URLs in `archive_site_local` were tried
 in the order specified, based on some initial testing. But my test wasn't
 realistic, because I used the same hostname (but a different path) for
 each URL. In that case, they are indeed tried in order, as far as I can
 tell.

 It appears that these hosts are still pinged; times for these hosts are
 recorded in the pingtimes file. If we're still pinging them and trying
 them in ping order, it should be allowed to specify one or more that are
 preferred, using `preferred_hosts`.

 However I cannot determine whether we are actually trying them in ping
 order, or in the order specified, or in random order. It seems to change
 every time I test it.

-- 
Ticket URL: <https://trac.macports.org/ticket/57720#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list