Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否是并发不安全的 #25

Closed
sirodeneko opened this issue May 24, 2021 · 1 comment
Closed

是否是并发不安全的 #25

sirodeneko opened this issue May 24, 2021 · 1 comment

Comments

@sirodeneko
Copy link

使用requests.Requests() 创建了一个对象,并发的利用这个对象去发送请求是否会造成错误

@yuanyb
Copy link

yuanyb commented Jun 2, 2021

使用requests.Requests() 创建了一个对象,并发的利用这个对象去发送请求是否会造成错误

@sirodeneko 肯定不是并发安全啊,看一下代码不就知道了。比如并发调用一个 RequestGet 方法,每个调用都会向同一个Request 写值,不就乱套了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants