Browse Source

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

Enable threads by default for dev server
pull/2536/head
Armin Ronacher 7 years ago committed by GitHub
parent
commit
2ef2000a39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGES
  2. 2
      flask/cli.py

1
CHANGES

@ -113,6 +113,7 @@ Major release, unreleased
depending on ``app.debug``. No handlers are removed, and a handler is only depending on ``app.debug``. No handlers are removed, and a handler is only
added if no handlers are already configured. (`#2436`_) added if no handlers are already configured. (`#2436`_)
- Blueprint view function name may not contain dots. (`#2450`_) - 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 .. _#1421: https://github.com/pallets/flask/issues/1421
.. _#1489: https://github.com/pallets/flask/pull/1489 .. _#1489: https://github.com/pallets/flask/pull/1489

2
flask/cli.py

@ -592,7 +592,7 @@ def load_dotenv(path=None):
@click.option('--eager-loading/--lazy-loader', default=None, @click.option('--eager-loading/--lazy-loader', default=None,
help='Enable or disable eager loading. By default eager ' help='Enable or disable eager loading. By default eager '
'loading is enabled if the reloader is disabled.') '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.') help='Enable or disable multithreading.')
@pass_script_info @pass_script_info
def run_command(info, host, port, reload, debugger, eager_loading, def run_command(info, host, port, reload, debugger, eager_loading,

Loading…
Cancel
Save