def connectionLost(self, reason):
        if not self._lostConnection:
            # 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()
Handle the possible repetition of calls to this method (due to either
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/protocols/tls.py/TLSMemoryBIOProtocol.connectionLost