

def make_server(host, port, app=None, threaded=False, processes=1, request_handler=None, passthrough_errors=False, ssl_context=None):
    'Create a new server instance that is either threaded, or forks\n    or just processes one request after another.\n    '
    if (threaded and (processes > 1)):
        raise ValueError('cannot have a multithreaded and multi process server.')
    elif threaded:
        return ThreadedWSGIServer(host, port, app, request_handler, passthrough_errors, ssl_context)
    elif (processes > 1):
        return ForkingWSGIServer(host, port, app, processes, request_handler, passthrough_errors, ssl_context)
    else:
        return BaseWSGIServer(host, port, app, request_handler, passthrough_errors, ssl_context)

dataset/ETHPy150Open Eforcers/gae-flask-todo/lib/werkzeug/serving.py make_server/original