浏览代码

maint: Flask backend enable app threaded

wangweimin 4 年之前
父节点
当前提交
4585290572
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pywebio/platform/flask.py

+ 1 - 1
pywebio/platform/flask.py

@@ -146,4 +146,4 @@ def start_server(applications, port=8080, host='localhost', cdn=True, static_dir
     if not debug:
         logging.getLogger('werkzeug').setLevel(logging.WARNING)
 
-    app.run(host=host, port=port, debug=debug, **flask_options)
+    app.run(host=host, port=port, debug=debug, threaded=True, **flask_options)