def check_timeouts(self):
        """Returns if the connection or any of its callbacks have timed out."""
        now = time.time()
        if now - self.last_used > self.CLIENT_TIMEOUT:
            return False
        for callback in self.queries.values():
            if now >= callback.start + callback.timeout and callback.timeout != 0:
                return False
        return True
Returns if the connection or any of its callbacks have timed out.
nogotofail/mitm/blame/app_blame.py