Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Enable threads by default for dev server

authored by Armin Ronacher · committed by GitHub · parent d24bb9e · Browse files · 2 files+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−1 removed

  • other:+2 added−1 removed

2 files+2 added−1 removed

modified:flask/cli.py+1 added-1 removed
590 unmodified lines
591 'is active if debug is enabled.')592@click.option('--eager-loading/--lazy-loader', default=None,593 help='Enable or disable eager loading. By default eager '594 'loading is enabled if the reloader is disabled.')595@click.option('--with-threads/--without-threads', default=False,595@click.option('--with-threads/--without-threads', default=True,596 help='Enable or disable multithreading.')597@pass_script_info598def run_command(info, host, port, reload, debugger, eager_loading,599 with_threads):
160 unmodified lines
modified:CHANGES+1 added
111 unmodified lines
112 ``app.debug`` each time. Only one format is used, not different ones113 depending on ``app.debug``. No handlers are removed, and a handler is only114 added if no handlers are already configured. (`#2436`_)115- Blueprint view function name may not contain dots. (`#2450`_)116- The dev server now uses threads by default.117118.. _#1421: https://github.com/pallets/flask/issues/1421119.. _#1489: https://github.com/pallets/flask/pull/1489120.. _#1621: https://github.com/pallets/flask/pull/1621
650 unmodified lines