Commit f7be98f4 authored by Łukasz Nowak's avatar Łukasz Nowak

kedifa/updater: Timeout if no response in 10 seconds

parent 70cb0742
......@@ -50,7 +50,8 @@ class Updater(object):
certificate = ''
try:
response = requests.get(
url, verify=self.server_ca_certificate_file, cert=self.identity_file)
url, verify=self.server_ca_certificate_file, cert=self.identity_file,
timeout=10)
except Exception as e:
print 'Certificate %r: problem with %r not downloaded: %s' % (
certificate_file, url, e)
......
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