diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2014-01-07 10:40:56 -0800 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2014-01-07 10:40:56 -0800 |
| commit | affab3f3128558dd808247f01abfee4b2bfee712 (patch) | |
| tree | d510e7fde474fe267cfbacfe4c2da9666f157f51 /src/pkg/runtime/runtime.h | |
| parent | 39a396d2ba470e24316be700db76aafbec963156 (diff) | |
| download | go-affab3f3128558dd808247f01abfee4b2bfee712.tar.xz | |
net/http: fix data race when sharing request body between client and server
A server Handler (e.g. a proxy) can receive a Request, and
then turn around and give a copy of that Request.Body out to
the Transport. So then two goroutines own that Request.Body
(the server and the http client), and both think they can
close it on failure. Therefore, all incoming server requests
bodies (always *http.body from transfer.go) need to be
thread-safe.
Fixes #6995
R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/46570043
Diffstat (limited to 'src/pkg/runtime/runtime.h')
0 files changed, 0 insertions, 0 deletions
