summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLANGLOIS Olivier PIS -EXT <olivier.pis.langlois@transport.alstom.com>2013-01-29 01:43:09 +0100
committerAllan McRae <allan@archlinux.org>2013-01-29 04:36:58 +0100
commitf21e1f54aa92e78f701c11696a2b4b404ed5672b (patch)
tree902fab5819835761830a82e79463811a6731d541
parentcb43bd8dfbee0396ff6f56c20690995adfcf3b99 (diff)
downloadpacman-f21e1f54aa92e78f701c11696a2b4b404ed5672b.tar.gz
pacman-f21e1f54aa92e78f701c11696a2b4b404ed5672b.tar.xz
Relax requirement of what constitutes a dead connection
Users have hit issues behind corporate firewalls that initially throttle downloads to ~1B/sec. Signed-off-by: Olivier Langlois < olivier.pis.langlois@transport.alstom.com> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--lib/libalpm/dload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index 83d2051e..19f629d1 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -294,7 +294,7 @@ static void curl_set_handle_opts(struct dload_payload *payload,
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, dload_progress_cb);
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, (void *)payload);
- curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 1024L);
+ curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 1L);
curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 10L);
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, dload_parseheader_cb);
curl_easy_setopt(curl, CURLOPT_WRITEHEADER, (void *)payload);