在connection.go中StartWriter为什么不用一个chan通知写线程关闭
Aberta
- Linguagem predominante
- Go
- Estrelas
- 7.8k
- Forks
- 1.3k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
看了好几篇代码,在写连接模块中,出错了会调用 c.stop。如果一种情况,客户端不传数据过来。而服务器主动发数据给客户端出错了。看到代码connection.go 70行中直接跳出staartwrite。为什么不在这里用chan通知写关闭。按我的理解,读出出错了,调用stop,那么写出错了,也应该 调用stop了
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.