Fix timeout setting, ignore log
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -63,3 +63,4 @@ target/
|
|||||||
|
|
||||||
# daemontools coexistance
|
# daemontools coexistance
|
||||||
run
|
run
|
||||||
|
log
|
||||||
|
|||||||
@@ -85,7 +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)
|
self._httpd.socket.settimeout(5.0)
|
||||||
|
|
||||||
def Serve(self):
|
def Serve(self):
|
||||||
self._httpd.serve_forever()
|
self._httpd.serve_forever()
|
||||||
|
|||||||
Reference in New Issue
Block a user