Descriptionnet/http: make client await response concurrently with writing request
If the server replies with an HTTP response before we're done
writing our body (for instance "401 Unauthorized" response), we
were previously ignoring that, since we returned our write
error ("broken pipe", etc) before ever reading the response.
Now we read and write at the same time.
Fixes issue 3595
Patch Set 1 #Patch Set 2 : diff -r 4c333000f50b https://go.googlecode.com/hg #Patch Set 3 : diff -r 4c333000f50b https://go.googlecode.com/hg #Patch Set 4 : diff -r 0a76445053e5 https://go.googlecode.com/hg/ #
Total comments: 3
Patch Set 5 : diff -r cd427be02cb1 https://go.googlecode.com/hg #
Total comments: 5
Patch Set 6 : diff -r f7839a55036e https://go.googlecode.com/hg #Patch Set 7 : diff -r f7839a55036e https://go.googlecode.com/hg #Patch Set 8 : diff -r f7839a55036e https://go.googlecode.com/hg #Patch Set 9 : diff -r f7839a55036e https://go.googlecode.com/hg #MessagesTotal messages: 19
|