'Run a WSGI server.'

def run_server(self):

    if cfg.CONF.pydev_worker_debug_host:
        utils.setup_remote_pydev_debug(cfg.CONF.pydev_worker_debug_host, cfg.CONF.pydev_worker_debug_port)
    eventlet.wsgi.HttpProtocol.default_request_version = 'HTTP/1.0'
    self.pool = self.create_pool()
    try:
        eventlet.wsgi.server(self.sock, self.application, log=self._logger, custom_pool=self.pool, debug=False, keepalive=CONF.http_keepalive, socket_timeout=self.client_socket_timeout)
    except socket.error as err:
        if (err[0] != errno.EINVAL):
            raise
    if ASYNC_EVENTLET_THREAD_POOL_LIST:
        for pool in ASYNC_EVENTLET_THREAD_POOL_LIST:
            pool.waitall()
