We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// 进行转发 // 从 proxyServer 读取数据发送到 localUser go func() { err := proxyServer.DecodeCopy(userConn) if err != nil { // 在 copy 的过程中可能会存在网络超时等 error 被 return,只要有一个发生了错误就退出本次工作 userConn.Close() proxyServer.Close() } }() // 从 localUser 发送数据发送到 proxyServer,这里因为处在翻墙阶段出现网络错误的概率更大 userConn.EncodeCopy(proxyServer)
为什么这里两个转发,前一个用了goroutine,后一个没有用呢?
同理,在server里面也是
The text was updated successfully, but these errors were encountered:
No branches or pull requests
为什么这里两个转发,前一个用了goroutine,后一个没有用呢?
同理,在server里面也是
The text was updated successfully, but these errors were encountered: