Beispiel #1
0
 def unregisterProtocol(self, p):
     WrappingFactory.unregisterProtocol(self, p)
     self.connectionCount -= 1
     self.ht.connectionCount -= 1
     
     if self.ht.connectionCount == 0:
         for name in ('unthrottleReadsID', 'checkReadBandwidthID',
                      'unthrottleWritesID', 'checkWriteBandwidthID'):
             self.cancelScheduled(getattr(self.ht, name))
Beispiel #2
0
 def unregisterProtocol(self, p):
     WrappingFactory.unregisterProtocol(self, p)
     self.connectionCount -= 1
     self.ht.connectionCount -= 1
     
     if self.ht.connectionCount == 0:
         for name in ('unthrottleReadsID', 'checkReadBandwidthID',
                      'unthrottleWritesID', 'checkWriteBandwidthID'):
             self.cancelScheduled(getattr(self.ht, name))
 def unregisterProtocol(self, protocol):
     WrappingFactory.unregisterProtocol(self, protocol)
     self.logs.remove(protocol.logfile)
     self.finishedLogs.append(protocol.logfile)
     del self.finishedLogs[:-self.LOGFILE_LIMIT]
Beispiel #4
0
 def unregisterProtocol(self, p):
     """See WrappingFactory.unregisterProtocol."""
     WrappingFactory.unregisterProtocol(self, p)
     if len(self.protocols) == 0:
         if self.allConnectionsGone is not None:
             self.allConnectionsGone.callback(None)
 def unregisterProtocol(self, p):
     """See WrappingFactory.unregisterProtocol."""
     WrappingFactory.unregisterProtocol(self, p)
     if len(self.protocols) == 0:
         if self.allConnectionsGone is not None:
             self.allConnectionsGone.callback(None)
 def unregisterProtocol(self, protocol):
     WrappingFactory.unregisterProtocol(self, protocol)
     self.logs.remove(protocol.logfile)
     self.finishedLogs.append(protocol.logfile)
     del self.finishedLogs[:-self.LOGFILE_LIMIT]