@staticmethod
def _limit_timeout_value(timeout):
    """
        This prevents from overflowing C long int
        :param timeout: timeout value
        :type timeout: int

        :return: timeout value that fits C long int
        :rtype: int
        """
    return timeout if timeout <= 2 ** 32 else 2 ** 32
