From 42c0240e501514a4c5030a3543934c267c4c8340 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Wed, 26 Sep 2018 09:11:36 -0700 Subject: [PATCH] try fix --- src/tcp/tcp.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tcp/tcp.go b/src/tcp/tcp.go index 2afe2e2..43b4186 100644 --- a/src/tcp/tcp.go +++ b/src/tcp/tcp.go @@ -132,9 +132,8 @@ func chanFromConn(conn net.Conn) chan []byte { reader := bufio.NewReader(conn) go func() { - b := make([]byte, models.TCP_BUFFER_SIZE) - for { + b := make([]byte, models.TCP_BUFFER_SIZE) n, err := reader.Read(b) if n > 0 { res := make([]byte, n)