'Run the WSGI server in a thread.'

def run(self):

    logging.info('Listening    on    port    %d.', self.port)
    ip = utils.ResolveHostnameToIP('localhost', self.port)
    server = serving.make_server(ip, self.port, wsgiapp.AdminUIApp().WSGIHandler())
    self.ready_to_serve.set()
    while self.keep_running:
        server.handle_request()
