def _prepare_socket(self):
        if not self.prepared:
            if self.logger:
                self.logger.info('Creating socket %s' % self.socket_config)
            self.socket = self.socket_config.create_and_bind()
            self.socket.listen(socket.SOMAXCONN)
            self.prepared = True
dataset/ETHPy150Open XiaoMi/minos/supervisor/supervisor/socket_manager.py/SocketManager._prepare_socket/original