From 14a93b2e436ed19c814653c3b2b61605fd5ca156 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 13 Aug 2009 21:01:40 -0500 Subject: 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 --- lib/libalpm/dload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libalpm') 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. */ -- cgit v1.2.3-70-g09d2