Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
    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)
Exemplo n.º 4
0
    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)
Exemplo n.º 5
0
 def timeoutConnection(self):
     #print "Timing out connection"
     TimeoutMixin.timeoutConnection(self)
Exemplo n.º 6
0
 def resetTimeout(self):
   self._awaitingPing = False
   TimeoutMixin.resetTimeout(self)
Exemplo n.º 7
0
    def timeoutConnection(self):
	#recognize a timeout 
        TimeoutMixin.timeoutConnection(self)
Exemplo n.º 8
0
 def timeoutConnection(self):
     #print "Timing out connection"
     TimeoutMixin.timeoutConnection(self)
Exemplo n.º 9
0
 def timeoutConnection(self):
     log.info("%s timed out after %d seconds" %
              (str(self.transport.getPeer()), self.TIMEOUT))
     return TimeoutMixin.timeoutConnection(self)
Exemplo n.º 10
0
 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)
Exemplo n.º 12
0
 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())
Exemplo n.º 13
0
 def timeoutConnection(self):
     log.debug("%s Timed out"%self.father.id)
     TimeoutMixin.timeoutConnection(self)
Exemplo n.º 14
0
 def timeoutConnection(self):
     log.debug("%s Timed out" % self.father.id)
     TimeoutMixin.timeoutConnection(self)