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)
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)
def __init__(self): DispatchProtocol.__init__(self) self._cc_queue = CancellableCallQueue() self._call_tracker = DeferredTracker() self._shared_objs = dict()
def messageReceived(self, header, body): print '%-54r ' % (header, ), ret = DispatchProtocol.messageReceived(self, header, body) return ret
def messageReceived(self, header, body): print '%-54r ' % (header,), ret = DispatchProtocol.messageReceived(self, header, body) return ret
def __init__(self): DispatchProtocol.__init__(self) self._cc_queue = CancellableCallQueue() self._call_tracker = DeferredTracker()