TCP echo multi thread
This commit is contained in:
parent
c5fc33b751
commit
984616b527
@ -17,7 +17,10 @@ func main() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
go func() {
|
||||
io.Copy(conn, conn)
|
||||
conn.Close()
|
||||
}()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user