aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/malloc.goc
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2014-01-07 10:40:56 -0800
committerBrad Fitzpatrick <bradfitz@golang.org>2014-01-07 10:40:56 -0800
commitaffab3f3128558dd808247f01abfee4b2bfee712 (patch)
treed510e7fde474fe267cfbacfe4c2da9666f157f51 /src/pkg/runtime/malloc.goc
parent39a396d2ba470e24316be700db76aafbec963156 (diff)
downloadgo-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/malloc.goc')
0 files changed, 0 insertions, 0 deletions