예제 #1
0
파일: dispatch.py 프로젝트: DxCx/twimp
 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)
예제 #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)
예제 #3
0
파일: dispatch.py 프로젝트: DxCx/twimp
    def __init__(self):
        DispatchProtocol.__init__(self)

        self._cc_queue = CancellableCallQueue()
        self._call_tracker = DeferredTracker()
        self._shared_objs = dict()
예제 #4
0
파일: demux_file.py 프로젝트: DxCx/twimp
 def messageReceived(self, header, body):
     print '%-54r  ' % (header, ),
     ret = DispatchProtocol.messageReceived(self, header, body)
     return ret
예제 #5
0
파일: demux_file.py 프로젝트: DxCx/twimp
 def messageReceived(self, header, body):
     print '%-54r  ' % (header,),
     ret = DispatchProtocol.messageReceived(self, header, body)
     return ret
예제 #6
0
    def __init__(self):
        DispatchProtocol.__init__(self)

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