'Set the timeout seconds on the socket.'

def set_socket_timeout(self, timeout):

    try:
        set_socket_timeout(self._raw_stream, timeout)
    except AttributeError:
        logger.error("Cannot    access    the    socket    object    of    a    streaming    response.        It's    possible    the    interface    has    changed.", exc_info=True)
        raise
