def timeoutConnection(self): log.info( "No iamalive received from %s for %d seconds; disconecting" % (self.transport.getPeer(), self.ALIVE_INTERVAL), system="VOEventSubscriber" ) return TimeoutMixin.timeoutConnection(self)
def callLater(self, period, func): """Override TimeoutMixin.callLater so we use self._clock. This allows us to write unit tests that don't depend on actual wall clock time. """ if self._clock is None: return TimeoutMixin.callLater(self, period, func) return self._clock.callLater(period, func)
def timeoutConnection(self): #print "Timing out connection" TimeoutMixin.timeoutConnection(self)
def resetTimeout(self): self._awaitingPing = False TimeoutMixin.resetTimeout(self)
def timeoutConnection(self): #recognize a timeout TimeoutMixin.timeoutConnection(self)
def timeoutConnection(self): log.info("%s timed out after %d seconds" % (str(self.transport.getPeer()), self.TIMEOUT)) return TimeoutMixin.timeoutConnection(self)
def timeoutConnection(self): log.info( "%s timed out after %d seconds" % (str(self.transport.getPeer()), self.TIMEOUT) ) return TimeoutMixin.timeoutConnection(self)
def timeoutConnection(self): # Recognize a timeout TimeoutMixin.timeoutConnection(self)
def timeoutConnection(self): TimeoutMixin.timeoutConnection(self) # self.deferred should be present whenever this method is # called, but let's program defensively and double-check. if self.deferred: self.deferred.errback(TimeoutError())
def timeoutConnection(self): log.debug("%s Timed out"%self.father.id) TimeoutMixin.timeoutConnection(self)
def timeoutConnection(self): log.debug("%s Timed out" % self.father.id) TimeoutMixin.timeoutConnection(self)