def connect ( self ) : self . socket = socket . create_connection ( self . address , self . timeout )
how to set connection timeout in python
Connects to the given host
def connect(self):
        """Connects to the given host"""
        self.socket = socket.create_connection(self.address, self.timeout)