def service_loop(self):
        """ Loop waiting for connections. """
        self._is_shut_down = threading.Event()
        self._shutdown_request = False
        fd = self.socket.fileno()
        try:
            while not self._shutdown_request:
                rd, wr, ex = select.select([fd], [], [], 0.5)
                if fd in rd:
                    self._handle_request_noblock()
        finally:
            self._is_shut_down.set()
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.util/src/openmdao/util/log.py/_LogServer.service_loop/original