在connection.go中StartWriter为什么不用一个chan通知写线程关闭
Abierto
- Lenguaje dominante
- Go
- Estrellas
- 7.8k
- Forks
- 1.3k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
看了好几篇代码,在写连接模块中,出错了会调用 c.stop。如果一种情况,客户端不传数据过来。而服务器主动发数据给客户端出错了。看到代码connection.go 70行中直接跳出staartwrite。为什么不在这里用chan通知写关闭。按我的理解,读出出错了,调用stop,那么写出错了,也应该 调用stop了
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.