-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http: An empty reply causes false race conditions (go1.3beta1+) #7856
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
Labels
Milestone
Comments
This is a regression from https://code.google.com/p/go/source/detail?r=358e2b416518# The Go http package contains this Body ReadCloser: // eofReader is a non-nil io.ReadCloser that always returns EOF. // It embeds a *strings.Reader so it still has a WriteTo method // and io.Copy won't need a buffer. var eofReader = &struct { *strings.Reader io.Closer }{ strings.NewReader(""), ioutil.NopCloser(nil), } That used to be safe to read from by multiple goroutines. Now that always-EOF Read is also a write. Owner changed to @bradfitz. Status changed to Accepted. |
CL https://golang.org/cl/94740044 mentions this issue. |
This issue was closed by revision 13ea1fd. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by travis.bischel:
The text was updated successfully, but these errors were encountered: