From: Carl Hetherington Date: Tue, 19 Mar 2019 22:22:34 +0000 (+0000) Subject: Try to reduce timeout when downloading supporters lists. X-Git-Tag: v2.15.0~16 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=d5d4290e484dc620f1f8489516524dd059fa4c1a;p=dcpomatic.git Try to reduce timeout when downloading supporters lists. --- diff --git a/wscript b/wscript index ac1b203f5..a60fc0e8a 100644 --- a/wscript +++ b/wscript @@ -538,7 +538,7 @@ def configure(conf): def download_supporters(can_fail): last_date = subprocess.Popen(shlex.split('git log -1 --format=%%ai %s' % last_version), stdout=subprocess.PIPE).communicate()[0] - r = os.system('curl -s -f https://dcpomatic.com/supporters.cc?%s > src/wx/supporters.cc' % urlencode({"until": last_date.strip()})) + r = os.system('curl -m 2 -s -f https://dcpomatic.com/supporters.cc?%s > src/wx/supporters.cc' % urlencode({"until": last_date.strip()})) if (r >> 8) == 0: r = os.system('curl -s -f https://dcpomatic.com/subscribers.cc?%s > src/wx/subscribers.cc' % urlencode({"until": last_date.strip()})) if (r >> 8) != 0 and can_fail: