Slow Requests on Local Flask Server

前端 未结 9 1983
无人共我
无人共我 2020-12-02 05:38

Just starting to play around with Flask on a local server and I\'m noticing the request/response times are way slower than I feel they should be.

Just a simple serve

9条回答
  •  情歌与酒
    2020-12-02 06:03

    Add "threaded=True" as an argument to app.run(), as suggested here: http://arusahni.net/blog/2013/10/flask-multithreading.html

    For example: app.run(host="0.0.0.0", port=8080, threaded=True)

    The ipv6-disabling solution did not work for me, but this did.

提交回复
热议问题