From 7c87c541f247c6e287d54385fa86e3aaede43525 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Wed, 16 Jun 2021 10:31:09 +0800 Subject: [PATCH] aa --- business/jxstore/cms/temp.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/temp.go b/business/jxstore/cms/temp.go index f32e9f895..8684f5257 100644 --- a/business/jxstore/cms/temp.go +++ b/business/jxstore/cms/temp.go @@ -29,7 +29,11 @@ func connHandler(c net.Conn) { // return //} //写入数据 - c.Write([]byte("input 1111111111")) + n, err := c.Write([]byte("input 1111111111")) + if err != nil { + fmt.Println("Write err:", err, n) + return + } //服务器端返回的数据写入buf cnt, err := c.Read(buf) if err != nil {