Add timeout

This commit is contained in:
Ian Gulliver
2016-04-10 21:51:08 +00:00
parent 996e57d3c2
commit d38a1fd25c

View File

@@ -85,6 +85,7 @@ class CertServer(object):
cert_reqs=ssl.CERT_REQUIRED,
ssl_version=ssl.PROTOCOL_TLSv1_2,
ciphers='ECDHE-ECDSA-AES256-GCM-SHA384')
self._httpd.settimeout(5.0)
def Serve(self):
self._httpd.serve_forever()