Commit da0d6393 authored by Michael Pöhn's avatar Michael Pöhn
Browse files

Merge branch 'makebuildserver-dl-timeout' into 'master'

makebuildserver: explicit timeout for cache downloading

Closes #666

See merge request !648
parents 333098b9 06bbd304
Pipeline #63496169 failed with stage
in 21 minutes and 30 seconds
......@@ -452,8 +452,8 @@ def update_cache(cachedir):
logging.info("Downloading %s to cache", filename)
if download:
r = requests.get(srcurl, headers=resume_header,
stream=True, allow_redirects=True)
r = requests.get(srcurl, headers=resume_header, stream=True,
allow_redirects=True, timeout=60)
content_length = int(r.headers.get('content-length'))
with open(local_filename, 'ab') as f:
for chunk in progress.bar(r.iter_content(chunk_size=65536),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment