Skip to content

Fix/conntion panic#404

Open
NeverENG wants to merge 2 commits intoaceld:masterfrom
NeverENG:fix/conntionPanic
Open

Fix/conntion panic#404
NeverENG wants to merge 2 commits intoaceld:masterfrom
NeverENG:fix/conntionPanic

Conversation

@NeverENG
Copy link
Copy Markdown

@NeverENG NeverENG commented May 5, 2026

描述:ZINX 在 TCP 框架的 SendBuffMsg 中在高并发短链接的情况下会出panic的问题,原因是 close the closed chanel
image
该 PR 在 example 里添加了并发短链接的测试代码,并在 conntion 添加了closeOnce sync.Once 字段避免高并发短链接情景下panic问题

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.

1 participant