Example #1
0
 def connectionLost(self, reason=protocol.connectionDone):
     self._cc_queue.cancel_all()
     pending_calls = list(self._call_tracker.iter_all())
     self._call_tracker.clear()
     for ms_id, d in pending_calls:
         d.errback(reason)
     DispatchProtocol.connectionLost(self, reason)
Example #2
0
 def connectionLost(self, reason=protocol.connectionDone):
     self._cc_queue.cancel_all()
     pending_calls = list(self._call_tracker.iter_all())
     self._call_tracker.clear()
     for ms_id, d in pending_calls:
         d.errback(reason)
     DispatchProtocol.connectionLost(self, reason)
Example #3
0
    def __init__(self):
        DispatchProtocol.__init__(self)

        self._cc_queue = CancellableCallQueue()
        self._call_tracker = DeferredTracker()
        self._shared_objs = dict()
Example #4
0
 def messageReceived(self, header, body):
     print '%-54r  ' % (header, ),
     ret = DispatchProtocol.messageReceived(self, header, body)
     return ret
Example #5
0
 def messageReceived(self, header, body):
     print '%-54r  ' % (header,),
     ret = DispatchProtocol.messageReceived(self, header, body)
     return ret
Example #6
0
    def __init__(self):
        DispatchProtocol.__init__(self)

        self._cc_queue = CancellableCallQueue()
        self._call_tracker = DeferredTracker()