在connection.go中StartWriter为什么不用一个chan通知写线程关闭
Open
- Dominant language
- Go
- Stars
- 7.8k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
看了好几篇代码,在写连接模块中,出错了会调用 c.stop。如果一种情况,客户端不传数据过来。而服务器主动发数据给客户端出错了。看到代码connection.go 70行中直接跳出staartwrite。为什么不在这里用chan通知写关闭。按我的理解,读出出错了,调用stop,那么写出错了,也应该 调用stop了
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.