From ecf8cbcdda73bc11107187611132c761cc4f62b5 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Wed, 26 Sep 2018 09:42:45 -0700 Subject: [PATCH] try fix --- src/tcp/tcp.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tcp/tcp.go b/src/tcp/tcp.go index e40fb19..feee03b 100644 --- a/src/tcp/tcp.go +++ b/src/tcp/tcp.go @@ -158,15 +158,16 @@ func pipe(conn1 net.Conn, conn2 net.Conn) { chan1 := chanFromConn(conn1) // chan2 := chanFromConn(conn2) // writer1 := bufio.NewWriter(conn1) - writer2 := bufio.NewWriter(conn2) + // writer2 := bufio.NewWriter(conn2) for { b1 := <-chan1 if b1 == nil { return } - writer2.Write(b1) - writer2.Flush() + conn2.Write(b1) + // writer2.Write(b1) + // writer2.Flush() // case b2 := <-chan2: // if b2 == nil {