fetch timeout

Joshua Root jmr at macports.org
Fri Jul 15 01:19:43 UTC 2022


On 2022-7-15 05:50 , Mark Brethen wrote:
> Can the timeout be set for fetch? Reason I ask is the download URL works from a browser but not using 'port fetch’.

The timeouts are currently hardcoded: 
<https://github.com/macports/macports-base/blob/master/src/pextlib1.0/curl.c#L57-L60>

If port fetch and a browser get different results though, it's probably 
either because of something like proxy configuration that differs 
between the two, or the server is doing user agent sniffing. If it's the 
latter and it's the primary master_sites server that's affected, you can 
set fetch.user_agent to work around. If it's a mirror that's timing out, 
we should remove it from the list (at least temporarily until its admins 
can fix it.)

- Josh


More information about the macports-dev mailing list