def run(self, handler): thread_count = self.options.pop('thread_count', None) server = mtwsgi.make_server(self.host, self.port, handler, thread_count, **self.options) server.serve_forever()