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
评论列表
文章目录