aceld / aceld/zinx

在 connection 的实现上有并发安全性的问题

Open
#76 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
7.8k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

代码处:

if c.isClosed == true {
return errors.New("Connection closed when send buff msg")
}

如果此时不用锁, 另外的 goroutine 关闭了 conn, 则存在问题

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.