Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net: Dialer.Cancel is able to cancel write on the established connection. #15078
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.