Esempio n. 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))
Esempio n. 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))
Esempio n. 3
0
 def unregisterProtocol(self, protocol):
     WrappingFactory.unregisterProtocol(self, protocol)
     self.logs.remove(protocol.logfile)
     self.finishedLogs.append(protocol.logfile)
     del self.finishedLogs[:-self.LOGFILE_LIMIT]
Esempio n. 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)
Esempio n. 6
0
 def unregisterProtocol(self, protocol):
     WrappingFactory.unregisterProtocol(self, protocol)
     self.logs.remove(protocol.logfile)
     self.finishedLogs.append(protocol.logfile)
     del self.finishedLogs[:-self.LOGFILE_LIMIT]