]> Cypherpunks repositories - gostls13.git/commit
net/http: flush server response gracefully when ignoring request body
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 29 May 2012 19:40:13 +0000 (12:40 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 29 May 2012 19:40:13 +0000 (12:40 -0700)
commit12b2022a3b20565c0c995f86de4f072964679047
treefc4f436175efad00499bf2daf6dbf591c1bb95aa
parentc1b53d43e8c843717b8f6e18897d5fe8e7290a9d
net/http: flush server response gracefully when ignoring request body

This prevents clients from seeing RSTs and missing the response
body.

TCP stacks vary. The included test failed on Darwin before but
passed on Linux.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6256066
src/pkg/net/http/serve_test.go
src/pkg/net/http/server.go