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

net: Dialer.Cancel is able to cancel write on the established connection. #15078

Closed
mikioh opened this issue Apr 3, 2016 · 1 comment
Closed

net: Dialer.Cancel is able to cancel write on the established connection. #15078

mikioh opened this issue Apr 3, 2016 · 1 comment
Milestone

Comments

@mikioh
Copy link
Contributor

@mikioh mikioh commented Apr 3, 2016

As mentioned in #15035, Dialer.Cancel, which is introduced in Go 1.6, can cancel any write operation on the established connection by closing the Dialer.Cancel channel. I don't believe that's intentional behavior. Dialer.Cancel must be applied to just the dial operation and must not carry any control knob to the following read/write operations.

@mikioh mikioh added this to the Go1.7 milestone Apr 3, 2016
@gopherbot

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Apr 4, 2016

CL https://golang.org/cl/21497 mentions this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.