[pacman-dev] [PATCH] Timeout when download problems occur
Allan McRae
allan at archlinux.org
Tue Feb 15 20:03:03 EST 2011
On 16/02/11 09:53, Dan McGee wrote:
> We already set fetchTimeout to 10 seconds, but this does not apply for some
> of the connection setup steps such as connect(). This left us hanging in a
> few places where we would normally be stuck in a system call for an
> indeterminate amount of time.
>
> This addresses FS#15369, which has grown to include and duplicate several
> other bugs and failures such as specifying a non-existent FTP server, DSL
> disconnections, etc.
>
> Signed-off-by: Dan McGee<dan at archlinux.org>
> ---
>
I tested this by the "pull out the internet cable" method.
Before this patch, I got a time out. After the patch, I got a freeze
that I can't crtl+c out of:
> sudo ./src/pacman/pacman -Sy
Password:
:: Synchronizing package databases...
kernel64 is up to date
testing is up to date
core is up to date
extra is up to date
community-testing is up to date
^C^C^C^C^C^C^C^C 228.5K 118.2K/s 00:00:01
[###########-----------] 53%
Allan
More information about the pacman-dev
mailing list