mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 01:41:52 -05:00
Make fetch timeout actually 10 seconds
We had 10000 as our timeout value, assuming it was expressed in ms. This is false after looking at the current code, so reset it back to 10 seconds. Addresses FS#15369. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
6d00025c18
commit
14a93b2e43
@ -147,8 +147,8 @@ static int download_internal(const char *url, const char *localpath,
|
||||
/* libfetch does not reset the error code */
|
||||
fetchLastErrCode = 0;
|
||||
|
||||
/* 10s timeout - TODO make a config option */
|
||||
fetchTimeout = 10000;
|
||||
/* 10s timeout */
|
||||
fetchTimeout = 10;
|
||||
|
||||
/* ignore any SIGPIPE signals- these may occur if our FTP socket dies or
|
||||
* something along those lines. Store the old signal handler first. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user