Add timeout
This commit is contained in:
@@ -85,6 +85,7 @@ class CertServer(object):
|
|||||||
cert_reqs=ssl.CERT_REQUIRED,
|
cert_reqs=ssl.CERT_REQUIRED,
|
||||||
ssl_version=ssl.PROTOCOL_TLSv1_2,
|
ssl_version=ssl.PROTOCOL_TLSv1_2,
|
||||||
ciphers='ECDHE-ECDSA-AES256-GCM-SHA384')
|
ciphers='ECDHE-ECDSA-AES256-GCM-SHA384')
|
||||||
|
self._httpd.settimeout(5.0)
|
||||||
|
|
||||||
def Serve(self):
|
def Serve(self):
|
||||||
self._httpd.serve_forever()
|
self._httpd.serve_forever()
|
||||||
|
|||||||
Reference in New Issue
Block a user