automatically use DEFAULT_TIMEOUT if it is not set to None