コード例 #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)
コード例 #2
0
ファイル: subscriber.py プロジェクト: timstaley/Comet
 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)
コード例 #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)
コード例 #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)
コード例 #5
0
ファイル: protocol.py プロジェクト: zbcbcbc/harbor
 def timeoutConnection(self):
     #print "Timing out connection"
     TimeoutMixin.timeoutConnection(self)
コード例 #6
0
ファイル: MetaProtocol.py プロジェクト: Hopper262/metaserver
 def resetTimeout(self):
   self._awaitingPing = False
   TimeoutMixin.resetTimeout(self)
コード例 #7
0
    def timeoutConnection(self):
	#recognize a timeout 
        TimeoutMixin.timeoutConnection(self)
コード例 #8
0
ファイル: protocol.py プロジェクト: Fishbubble/txMySQL
 def timeoutConnection(self):
     #print "Timing out connection"
     TimeoutMixin.timeoutConnection(self)
コード例 #9
0
 def timeoutConnection(self):
     log.info("%s timed out after %d seconds" %
              (str(self.transport.getPeer()), self.TIMEOUT))
     return TimeoutMixin.timeoutConnection(self)
コード例 #10
0
 def timeoutConnection(self):
     log.info(
         "%s timed out after %d seconds" %
         (str(self.transport.getPeer()), self.TIMEOUT)
     )
     return TimeoutMixin.timeoutConnection(self)
コード例 #11
0
 def timeoutConnection(self):
     # Recognize a timeout 
     TimeoutMixin.timeoutConnection(self)
コード例 #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())
コード例 #13
0
ファイル: proxyclient.py プロジェクト: simonm3/mim
 def timeoutConnection(self):
     log.debug("%s Timed out"%self.father.id)
     TimeoutMixin.timeoutConnection(self)
コード例 #14
0
ファイル: proxyclient.py プロジェクト: simonm3/mim
 def timeoutConnection(self):
     log.debug("%s Timed out" % self.father.id)
     TimeoutMixin.timeoutConnection(self)