[releng] convert-to-tarballs.py: make curl a bit more resilient against d/l problems
- From: Olav Vitters <ovitters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [releng] convert-to-tarballs.py: make curl a bit more resilient against d/l problems
- Date: Mon, 13 Jun 2011 20:56:53 +0000 (UTC)
commit cd2b9b3d61c2ecf49361992798c275d8e8eb7f04
Author: Olav Vitters <olav vitters nl>
Date: Mon Jun 13 22:56:48 2011 +0200
convert-to-tarballs.py: make curl a bit more resilient against d/l problems
tools/smoketesting/convert-to-tarballs.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tools/smoketesting/convert-to-tarballs.py b/tools/smoketesting/convert-to-tarballs.py
index 0ce1827..0513ea9 100755
--- a/tools/smoketesting/convert-to-tarballs.py
+++ b/tools/smoketesting/convert-to-tarballs.py
@@ -440,7 +440,8 @@ class TarballLocator:
if not os.path.exists(newfile) or tries != MAX_TRIES:
print "Downloading", filename, newfile
# one of those options will make Curl resume an existing download
- cmd = ['curl', '-C', '-', '-#kRfL', '--disable-epsv', location, '-o', newfile]
+ # speed-limit ensures 1KB/s over 30sec average (in case of connection problems)
+ cmd = ['curl', '-C', '-', '-#kRfL', '--speed-limit', '1024', '--disable-epsv', location, '-o', newfile]
retcode = subprocess.call(cmd)
if retcode != 0:
# Curl gives an error when an existing file cannot be continued
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]