summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-08-13 21:01:40 -0500
committerDan McGee <dan@archlinux.org>2009-08-13 21:01:40 -0500
commit14a93b2e436ed19c814653c3b2b61605fd5ca156 (patch)
tree2b2efa8b4d0da61c4c649bcd518ae830267e2285
parent6d00025c18e837f57a4f78ee232fe3d8f244f143 (diff)
downloadpacman-14a93b2e436ed19c814653c3b2b61605fd5ca156.tar.xz
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>
-rw-r--r--lib/libalpm/dload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index 57c21b8e..fb778ee0 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -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. */