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): """ 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)
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): # type: (AnyStr) -> None log.debug('reason = %s (%s)', reason, type(reason)) self.clear() ProtocolWrapper.connectionLost(self, reason)
def connectionLost(self, reason): # type: (AnyStr) -> None self.clear() ProtocolWrapper.connectionLost(self, reason)