def run(self):
        self._logger.info("Starting session: {0}".format(self.name))

        while True:
            try:
                self._handle_message_loop()
            except exceptions.ConnectionClosed as e:
                break
            except Exception as e:
                self._logger.info("Failure handling message loop")
                self._logger.exception(e)

        self._connection.shutdown(socket.SHUT_RDWR)
        self._connection.close()
        self._logger.info("Stopping session: {0}".format(self.name))
The main thread routine executed by invoking thread.start.
dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/services/server/session.py/KmipSession.run