golang socket编程出现:
conn.Read err read tcp 127.0.0.1:8181->127.0.0.1:52995: wsarecv: An existing connection was forcibly closed by the remote host.
这是因为链接关闭了 还在读取数据导致 。。处理一下错误即可
判断 socket关闭
if err == io.EOF{
}