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

V1.7.15 lock change #887

Merged
merged 2 commits into from
Jan 28, 2025
Merged

V1.7.15 lock change #887

merged 2 commits into from
Jan 28, 2025

Conversation

lk-j
Copy link
Contributor

@lk-j lk-j commented Jan 14, 2025

getCachedClient 当网络存在问题时有连接泄漏,建议修改锁粒度 1.7.15版本

@smallnest
Copy link
Owner

没有指出哪里内存泄露了,所以需要清楚的指名哪里内存泄露了。

否则这个修改把锁的范围扩大了,影响性能

@smallnest
Copy link
Owner

我大概立即了,是说在极端情况下,singleflight控制不住并发,可能会创建多个连接

@smallnest smallnest merged commit 751e883 into smallnest:master Jan 28, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants