示例#1
0
 def connectionLost(self, reason):
     # type: (AnyStr) -> None
     # reason = [Failure instance: Traceback (failure with no
     # frames): <class 'twisted.internet.error.ConnectionDone'>:
     # Connection was closed cleanly. ] (<type 'instance'>)
     self.clear()
     ProtocolWrapper.connectionLost(self, reason)
 def connectionLost(self, reason):
     # type: (AnyStr) -> None
     # reason = [Failure instance: Traceback (failure with no
     # frames): <class 'twisted.internet.error.ConnectionDone'>:
     # Connection was closed cleanly. ] (<type 'instance'>)
     self.clear()
     ProtocolWrapper.connectionLost(self, reason)
示例#3
0
 def connectionLost(self, reason):
     """
     Handle the possible repetition of calls to this method (due to either
     the underlying transport going away or due to an error at the TLS
     layer) and make sure the base implementation only gets invoked once.
     """
     if not self._lostTLSConnection:
         # Tell the TLS connection that it's not going to get any more data
         # and give it a chance to finish reading.
         self._tlsConnection.bio_shutdown()
         self._flushReceiveBIO()
         self._lostTLSConnection = True
     reason = self._reason or reason
     self._reason = None
     ProtocolWrapper.connectionLost(self, reason)
示例#4
0
文件: tls.py 项目: AmirKhooj/VTK
 def connectionLost(self, reason):
     """
     Handle the possible repetition of calls to this method (due to either
     the underlying transport going away or due to an error at the TLS
     layer) and make sure the base implementation only gets invoked once.
     """
     if not self._lostTLSConnection:
         # Tell the TLS connection that it's not going to get any more data
         # and give it a chance to finish reading.
         self._tlsConnection.bio_shutdown()
         self._flushReceiveBIO()
         self._lostTLSConnection = True
     reason = self._reason or reason
     self._reason = None
     ProtocolWrapper.connectionLost(self, reason)
示例#5
0
 def connectionLost(self, reason):
     self.clear()
     ProtocolWrapper.connectionLost(self, reason)
 def connectionLost(self, reason):
     if not self.connectionLostCalled:
         ProtocolWrapper.connectionLost(self, reason)
         self.connectionLostCalled = True
 def connectionLost(self, reason):
     if debug:
         print 'TwistedProtocolWrapper.connectionLost'
     self.clear()
     ProtocolWrapper.connectionLost(self, reason)
 def connectionLost(self, reason):
     self.clear()
     ProtocolWrapper.connectionLost(self, reason)
 def connectionLost(self, reason):
     if not self.connectionLostCalled:
         ProtocolWrapper.connectionLost(self, reason)
         self.connectionLostCalled = True
示例#10
0
 def connectionLost(self, reason):
     # type: (AnyStr) -> None
     log.debug('reason = %s (%s)', reason, type(reason))
     self.clear()
     ProtocolWrapper.connectionLost(self, reason)
 def connectionLost(self, reason):
     if debug:
         print 'TwistedProtocolWrapper.connectionLost'
     self.clear()
     ProtocolWrapper.connectionLost(self, reason)
示例#12
0
 def connectionLost(self, reason):
     # type: (AnyStr) -> None
     self.clear()
     ProtocolWrapper.connectionLost(self, reason)
示例#13
0
 def connectionLost(self, reason):
     # type: (AnyStr) -> None
     self.clear()
     ProtocolWrapper.connectionLost(self, reason)