Descriptionnet/http, strings, bytes: fix http race, revert part of Reader behavior change
I fixed this data race regression in two ways: in net/http itself, and also
partially reverting the change from https://codereview.appspot.com/77580046 .
Previously a Read from a strings.Reader or bytes.Reader returning 0 bytes
would not be a memory write. After 77580046 it was. This reverts that back
in case others depended on that. Also adds tests.
Fixes Issue 7856
Patch Set 1 #Patch Set 2 : diff -r f613443bb13a https://go.googlecode.com/hg/ #Patch Set 3 : diff -r f613443bb13a https://go.googlecode.com/hg/ #
Total comments: 1
Patch Set 4 : diff -r 9eacb9c0d810 https://go.googlecode.com/hg/ #
MessagesTotal messages: 4
|