Python requests module is very slow on specific machine

后端 未结 4 985
我寻月下人不归
我寻月下人不归 2020-12-19 16:36

I\'ve experienced too slow execution of Python requests on some machines and with specific user while other tools (for instance curl) are quite fast. Strange thing is that i

4条回答
  •  执笔经年
    2020-12-19 17:09

    For anyone reading this and using localhost in their URL, I resolved this issue by changing it to 127.0.0.1.

    If this resolves the problem, it's a DNS problem, and it's not a requests problem.

提交回复
热议问题