From a6b33fe04638123ff25cdc91dfad54cd98dabac0 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Wed, 26 Sep 2018 09:45:36 -0700 Subject: [PATCH] try fix --- src/tcp/tcp.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tcp/tcp.go b/src/tcp/tcp.go index feee03b..3e63c05 100644 --- a/src/tcp/tcp.go +++ b/src/tcp/tcp.go @@ -1,7 +1,6 @@ package tcp import ( - "bufio" "net" "sync" "time" @@ -129,12 +128,12 @@ func clientCommuncation(port string, c *comm.Comm) (err error) { // Read()s from the socket to the channel. func chanFromConn(conn net.Conn) chan []byte { c := make(chan []byte) - reader := bufio.NewReader(conn) + // reader := bufio.NewReader(conn) go func() { for { b := make([]byte, models.TCP_BUFFER_SIZE) - n, err := reader.Read(b) + n, err := conn.Read(b) if n > 0 { // c <- b[:n] res := make([]byte, n)