Enable threads by default for the dev server (#2529)

Enable threads by default for dev server
This commit is contained in:
Armin Ronacher 2017-11-25 00:17:09 +01:00 committed by GitHub
parent d24bb9ee32
commit 2ef2000a39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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,