index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <d@falconindy.com> | 2011-05-26 19:32:45 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-01 15:05:30 -0500 |
commit | 8807cac100acb2d368232833b2478e96a1806fa9 (patch) | |
tree | fa3d0c6cc1215de8ec316674f79f3dcf5301b041 | |
parent | 8f1c873b5f07f42a8bdc65bb03097790135a9c94 (diff) |
-rw-r--r-- | lib/libalpm/dload.c | 2 |
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index d024c736..e29929ef 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -194,6 +194,8 @@ static int curl_download_internal(const char *url, const char *localpath, curl_easy_setopt(handle->curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(handle->curl, CURLOPT_PROGRESSFUNCTION, curl_progress); curl_easy_setopt(handle->curl, CURLOPT_PROGRESSDATA, (void *)&dlfile); + curl_easy_setopt(handle->curl, CURLOPT_LOW_SPEED_LIMIT, 1200L); + curl_easy_setopt(handle->curl, CURLOPT_LOW_SPEED_TIME, 10L); useragent = getenv("HTTP_USER_AGENT"); if(useragent != NULL) { |