[GH-ISSUE #355] 和python3 requests 库搭配使用存在报错问题 #270

Closed
opened 2026-02-27 23:16:16 +03:00 by kerem · 2 comments
Owner

Originally created by @Xyberonz on GitHub (Mar 19, 2020).
Original GitHub issue: https://github.com/snail007/goproxy/issues/355

问题在requests下面提交了,不知道是goproxy的问题还是requests的问题,或者是写的代码存在问题; https://github.com/psf/requests/issues/5392

Originally created by @Xyberonz on GitHub (Mar 19, 2020). Original GitHub issue: https://github.com/snail007/goproxy/issues/355 问题在requests下面提交了,不知道是goproxy的问题还是requests的问题,或者是写的代码存在问题; https://github.com/psf/requests/issues/5392
kerem closed this issue 2026-02-27 23:16:16 +03:00
Author
Owner

@Xyberonz commented on GitHub (Mar 19, 2020):

原因是并发太高, 当我关闭了其他程序的并发请求, 一切都正常了
即使在并发为1,也会出现SSLerror.

更新解决方法->

{'http': 'http://127.0.0.1:30000', 'https': 'http://127.0.0.1:30000'}

改成:

proxies={'http': 'http://127.0.0.1:30000'}

不再出现问题!

<!-- gh-comment-id:601008654 --> @Xyberonz commented on GitHub (Mar 19, 2020): ~~原因是并发太高, 当我关闭了其他程序的并发请求, 一切都正常了~~ 即使在并发为1,也会出现SSLerror. 更新解决方法-> ``` {'http': 'http://127.0.0.1:30000', 'https': 'http://127.0.0.1:30000'} ``` 改成: ``` proxies={'http': 'http://127.0.0.1:30000'} ``` 不再出现问题!
Author
Owner

@snail007 commented on GitHub (Mar 19, 2020):

那看来应该是你系统默认的程序打开最大文件数没有调整,默认很低是1024。

<!-- gh-comment-id:601035538 --> @snail007 commented on GitHub (Mar 19, 2020): 那看来应该是你系统默认的程序打开最大文件数没有调整,默认很低是1024。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#270
No description provided.