(self, ms)
Backward compat api, will bind the timeout to both connect_timeout
        and socket_timeout.
Backward compat api, will bind the timeout to both connect_timeout
        and socket_timeout.
Backward compat api will bind the timeout to both connect_timeout and socket_timeout .
def set_timeout(self, ms):
        """Backward compat api, will bind the timeout to both connect_timeout
        and socket_timeout.
        """
        self.socket_timeout = ms / 1000 if (ms and ms > 0) else None
        self.connect_timeout = self.socket_timeout

        if self.sock is not None:
            self.sock.settimeout(self.socket_timeout)
def set_timeout ( self , ms ) : self . socket_timeout = ms / 1000 if ( ms and ms > 0 ) else None self . connect_timeout = self . socket_timeout if self . sock is not None : self . sock . settimeout ( self . socket_timeout )