diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/SSLServer.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/SSLServer.py b/src/lib/SSLServer.py index ca22a33b8..fe28203d3 100644 --- a/src/lib/SSLServer.py +++ b/src/lib/SSLServer.py @@ -100,6 +100,7 @@ class SSLServer (SocketServer.TCPServer, object): self.logger.error("Failed to bind to socket") raise + self.timeout = timeout self.socket.settimeout(timeout) self.keyfile = keyfile if keyfile != None: @@ -131,6 +132,7 @@ class SSLServer (SocketServer.TCPServer, object): def get_request(self): (sock, sockinfo) = self.socket.accept() + sock.settimeout(self.timeout) sslsock = ssl.wrap_socket(sock, server_side=True, certfile=self.certfile, keyfile=self.keyfile, cert_reqs=self.mode, ca_certs=self.ca, ssl_version=self.ssl_protocol) |