Skip to content

Conversation

jcmfernandes
Copy link

Go's built-in data race detector keeps reporting a race between the read of packConnection.stderrBuf by checkError() and the write to it by ioutil.CopyBufferPool.

I must confess that I don't fully understand the rationale here. Can't the goroutine that includes ioutil.CopyBufferPool(&c.stderrBuf, stderr) run after Hashshake() returns? There's no synchronization between the parent and child goroutines; hence, we may miss the stderr.

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

Successfully merging this pull request may close these issues.

1 participant