Try to reduce timeout when downloading supporters lists.
authorCarl Hetherington <cth@carlh.net>
Tue, 19 Mar 2019 22:22:34 +0000 (22:22 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 7 Apr 2019 23:22:40 +0000 (00:22 +0100)
wscript

diff --git a/wscript b/wscript
index 5f586a7ac53403db122fcfd2111c6d0529854ac0..216c3a61b90231244d22570279aeaf320c7668ec 100644 (file)
--- a/wscript
+++ b/wscript
@@ -541,7 +541,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: