TCP echo multi thread

This commit is contained in:
Meutel 2017-07-09 15:18:24 +02:00
parent c5fc33b751
commit 984616b527

View File

@ -17,7 +17,10 @@ func main() {
if err != nil {
panic(err)
}
go func() {
io.Copy(conn, conn)
conn.Close()
}()
}
}