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
Signed-off-by: Dan McGee<email@example.com>
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
:: 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