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