When I read the opensource code:
there have this code below:
streamConn := func(dst io.Writer, src io.Reader) {
io.Copy(dst, src)
streamWait.Done()
}
go streamConn(remoteConn, conn)
go streamConn(conn, remoteConn)
you see there use two go streamConn() to switch the data between two conn.
and I want to know if the remoteConn do not have data to transmit, there copy what? copy nil?