Skip to content
New issue

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

proxy.go pass() #2

Closed
tuzaix opened this issue Oct 7, 2016 · 1 comment
Closed

proxy.go pass() #2

tuzaix opened this issue Oct 7, 2016 · 1 comment

Comments

@tuzaix
Copy link

tuzaix commented Oct 7, 2016

    default:

        from.SetReadDeadline(time.Now().Add(time.Duration(pConfig.Timeout) * time.Second))
        read, err = from.Read(bytes)
        if err != nil {
            complete <- true
            one_side <- true
            return
        }

        to.SetReadDeadline(time.Now().Add(time.Duration(pConfig.Timeout) * time.Second))  // 这个应该是to.SetWriteDeadline ???
        _, err = to.Write(bytes[:read])
@zheng-ji
Copy link
Owner

zheng-ji commented Oct 7, 2016

多谢指正,手误了,刚刚fix.

@zheng-ji zheng-ji closed this as completed Oct 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants