def connect(self):

        sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        if self.timeout:
            self.sock.settimeout(self.timeout)
        sock.connect((self.host, self.port))
        ssl = socket.ssl(sock, self.key_file, self.cert_file)
        self.sock = httplib.FakeSocket(sock, ssl)
Connect to a host on a given (SSL) port.
dataset/ETHPy150Open XiaoMi/minos/supervisor/superlance/timeoutconn.py/TimeoutHTTPSConnection.connect