module RedisClient::ConnectionMixin
def connection_timeout(timeout)
def connection_timeout(timeout) return timeout unless timeout && timeout > 0 # Can't use the command timeout argument as the connection timeout # otherwise it would be very racy. So we add the regular read_timeout on top # to account for the network delay. timeout + config.read_timeout end