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

解决connection模块写时,出现往空的channel写的panic错误 #286

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

xiongyuhmba
Copy link

为了不使用锁,此处去掉主动关闭close(c.msgBuffChan) 让系统自动GC 该channel。可避免写数据时出现竞争:往关闭的channel写数据的panic错误

@aceld aceld merged commit 4951f22 into aceld:master Nov 24, 2023
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