You are not logged in.
When pacman downloads packages, it downloads them one by one. It means:
1 - Connect
2 - Identificate
3 - set dir
4 - Download
It does this for each file. even if the server is down, it will try to connect again to the same server for each file it has to download.
My suggestion is that instead of downloading file by file, have it to download all files at once, just one connection per server.
This would avoid the connect and identificate in many of the files. It also would make much more easier to cancel an upgrade with Ctrl + C, cause it would be one cancel per server, not one cancel per file per server (in case you use wget).
And, of course, it would speed up the downloads.
Offline
Sounds reasonable but you'll need a patch!
Offline
I checked pacman source code
If you don't use XFerCommand it connects once per server... at least the function that downloads the files has support for it... and the comments in the main file also say that... so pointless topic
Offline
Shall I delete it then?
Offline
yes, please
Offline
If you use wget to download your packages, read the wget man pages. I think wget has an option to reuse existing connections. If so, you can just add this option to the XFerCommand and that will fix the problem.
Offline
I didn't find anything in the man pages about that.
Offline
Hmm... I just went trought the man pages and there doesn't seem to be any options. Sometime, when I use wget there's a "reusing existing connection" message. Maybe it depends on the server. You could try this switch combination:
-r -l0
From: http://marc.theaimsgroup.com/?l=wget&m= … 132185&w=2
it seems to be a work around.
Offline
-r: recursive
-l0: depth=0
The download function of pacman is programmed to check file by file. To apply a patch that uses single connection with wget (if wget supports it) the code should be cleaned a bit by putting the "check download" code in another function (before there was no need so it is was ok like it is right now), and there should be a way to specify in pacman.conf that your xfercommmand supports multiple files (%u single file, %U multiple files?)
Offline