Can't download dmd in FreeBSD .. Slow!

FeepingCreature feepingcreature at gmail.com
Fri Jul 24 05:56:51 UTC 2020


On Friday, 24 July 2020 at 05:47:19 UTC, zoujiaqing wrote:
> # wget 
> http://downloads.dlang.org/releases/2.x/2.093.0/dmd.2.093.0.freebsd-64.tar.xz
> --2020-07-24 10:24:35--  
> http://downloads.dlang.org/releases/2.x/2.093.0/dmd.2.093.0.freebsd-64.tar.xz
> Resolving downloads.dlang.org (downloads.dlang.org)... 
> 52.218.233.250
> Connecting to downloads.dlang.org 
> (downloads.dlang.org)|52.218.233.250|:80... connected.
> HTTP request sent, awaiting response... 301 Moved Permanently
> Location: 
> http://downloads.dlang.org/releases/2020/dmd.2.093.0.freebsd-64.tar.xz [following]
> --2020-07-24 10:24:36--  
> http://downloads.dlang.org/releases/2020/dmd.2.093.0.freebsd-64.tar.xz
> Reusing existing connection to downloads.dlang.org:80.
> HTTP request sent, awaiting response... 200 OK
> Length: 18729036 (18M) [application/x-tar]
> Saving to: 'dmd.2.093.0.freebsd-64.tar.xz'
>
> dmd.2.093.0.freebsd-64.tar.xz            20%[===============>
>                                                           ]   
> 3.69M  --.-KB/s    eta 12h 41m
>
>
> FreeBSD ports so old and bugly:
> https://www.freshports.org/lang/dmd2/

Don't tell dlang:

wget --continue --tries=inf --timeout=1 url.

The server sometimes takes a break in the middle of the download, 
I don't know why, probably a misconfiguration. With the low 
timeout, you force wget to hammer the server again if this 
happens to, presumably, give it a new "slot" and another burst of 
speed. Usually you can get the file downloaded in 5 retries or so.


More information about the Digitalmars-d mailing list