From 2ef2000a39541d8424f3163ef5feeabacc81e681 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 25 Nov 2017 00:17:09 +0100 Subject: [PATCH] Enable threads by default for the dev server (#2529) Enable threads by default for dev server --- CHANGES | 1 + flask/cli.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 357b289d..294829ff 100644 --- a/CHANGES +++ b/CHANGES @@ -113,6 +113,7 @@ Major release, unreleased depending on ``app.debug``. No handlers are removed, and a handler is only added if no handlers are already configured. (`#2436`_) - Blueprint view function name may not contain dots. (`#2450`_) +- The dev server now uses threads by default. .. _#1421: https://github.com/pallets/flask/issues/1421 .. _#1489: https://github.com/pallets/flask/pull/1489 diff --git a/flask/cli.py b/flask/cli.py index 8bfb21f6..1be7957c 100644 --- a/flask/cli.py +++ b/flask/cli.py @@ -592,7 +592,7 @@ def load_dotenv(path=None): @click.option('--eager-loading/--lazy-loader', default=None, help='Enable or disable eager loading. By default eager ' 'loading is enabled if the reloader is disabled.') -@click.option('--with-threads/--without-threads', default=False, +@click.option('--with-threads/--without-threads', default=True, help='Enable or disable multithreading.') @pass_script_info def run_command(info, host, port, reload, debugger, eager_loading,