From 4c33a1e9b2c6642a1a2d8ffce68263493c76e03a Mon Sep 17 00:00:00 2001 From: "arraykeys@gmail.com" Date: Thu, 29 Mar 2018 17:25:32 +0800 Subject: [PATCH] Signed-off-by: arraykeys@gmail.com --- services/sps.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/sps.go b/services/sps.go index 5d99564..8d687cc 100644 --- a/services/sps.go +++ b/services/sps.go @@ -240,7 +240,7 @@ func (s *SPS) OutToTCP(inConn *net.Conn) (err error) { utils.CloseConn(&outConn) return } - reply := make([]byte, 100) + reply := make([]byte, 1024) outConn.SetDeadline(time.Now().Add(time.Millisecond * time.Duration(*s.cfg.Timeout))) _, err = outConn.Read(reply) outConn.SetDeadline(time.Time{})