mibretriever.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:nav 作者: UNINETT 项目源码 文件源码
def __timeout_handler(self, failure, descr):
        """Handles timeouts while processing alternate MIB instances.

        Under the premise that we may have an incorrect community string for a
        MIB instance, we don't want to derail the entire process of collecting
        from all instances, so we ignore timeouts for anything but the primary
        (base) instance.

        """
        if self.agent_proxy is not self._base_agent:
            failure.trap(TimeoutError, defer.TimeoutError)
            self._logger.debug("ignoring timeout from %r", descr)
            return None
        return failure
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号