]> Cypherpunks repositories - gostls13.git/commit
net/http: document ResponseWriter read-vs-write concurrency rules
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 10 May 2016 23:09:16 +0000 (16:09 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 11 May 2016 16:54:01 +0000 (16:54 +0000)
commit9a57fa31ff35024b9f628e7eae39bfd35bf90d77
treeaa1bdf01c57c1ee206d9112ec62f896afc026f8f
parent80423f1e64f1e939cddc455a29e5111527cd16f8
net/http: document ResponseWriter read-vs-write concurrency rules

Summary: Go's HTTP/1.x server closes the request body once writes are
flushed. Go's HTTP/2 server supports concurrent read & write.

Added a TODO to make the HTTP/1.x server also support concurrent
read+write. But for now, document it.

Updates #15527

Change-Id: I81f7354923d37bfc1632629679c75c06a62bb584
Reviewed-on: https://go-review.googlesource.com/23011
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/net/http/server.go