[pacman-dev] bug: pacman giving up too fast downloading

Jonathan Conder j at skurvy.no-ip.org
Tue Feb 16 09:31:04 EST 2010


On Tue, 2010-02-16 at 09:25 -0500, Paul Dufresne wrote:
> Well, I have lots of errors while downloading packages with pacman,
> and almost never while downloading files from Shiretoko Firefox.
> 
> I have tried many mirrors, that's the same for each.
> 
> Oh... I use a 56k modem (Intel 536EP Data Fax modem).
> 
> But even while downloading in Firefox, it sometimes give me the
> feeling it has stopped downloading for about 40 secs... while pacman
> seems to give up after about 20 secs.
> 
> I did not tried yet to download with wget or curl (does pacman use one
> of them?).
> 
> Is there a constant I could change in the code, and rebuild it?... I
> did not download the code of pacman yet.

I am not a pacman developer, but I believe you can search for
'fetchTimeout' in pacman-3.3.3/lib/libalpm/dload.c and change it from 10
to whatever you want. Alternatively, you could use XferCommand
in /etc/pacman.conf with wget, curl, etc. Read the man page for details.

Hope this helps
Jonathan



More information about the pacman-dev mailing list