def checkTimeout(self, now):
        """Compare current time with last_update time, and raise an exception
        if we're over the timeout time."""
        log.debug("checking for timeout on session %s" % self)
        if now - self.last_update > self.timeout:
            raise TftpTimeout, "Timeout waiting for traffic"
dataset/ETHPy150Open dragondjf/QMarkdowner/tftpy/TftpContexts.py/TftpContext.checkTimeout/original