Explorar o código

maint: Flask backend enable app threaded

wangweimin %!s(int64=4) %!d(string=hai) anos
pai
achega
4585290572
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)