Python代码使用循环发起网络请求,发起单个没有问题,发起多个请求,就会报错
ConnectionResetError: [Errno 104] Connection reset by peer
可以考虑在每个请求之间增加一个时间间隔
time.sleep(0.5)
参考
- Python 频繁请求问题: [Errno 104] Connection reset by peer
ConnectionResetError: [Errno 104] Connection reset by peer
阅读 71
2023-04-09
Python代码使用循环发起网络请求,发起单个没有问题,发起多个请求,就会报错
ConnectionResetError: [Errno 104] Connection reset by peer
可以考虑在每个请求之间增加一个时间间隔
time.sleep(0.5)
参考
相关推荐
精彩评论(0)