Slow Requests on Local Flask Server

前端 未结 9 1982
无人共我
无人共我 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 05:52

    threaded=True works for me, but finally I figured out that the issue is due to foxyproxy on firefox. Since when the flask app is running on localhost, slow response happens if

    • foxyproxy is enabled on firefox

    slow response won't happen if

    • foxyproxy is disabled on firefox

    • access the website using other browsers

    The only solution I found is to disable foxyproxy, tried to add localhost to proxy blacklist and tweak settings but none of them worked.

提交回复
热议问题