aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/database/sql
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2013-01-11 10:03:43 -0800
committerBrad Fitzpatrick <bradfitz@golang.org>2013-01-11 10:03:43 -0800
commitbef4cb475c0638ab5193f75f2683b35a7c7f6547 (patch)
tree5be14be3f30940b31e1b102bfb715b78ce49e9a6 /src/pkg/database/sql
parent98259b92115f24b41c5ba40c3cddb68f6f0077f8 (diff)
downloadgo-bef4cb475c0638ab5193f75f2683b35a7c7f6547.tar.xz
net/http: buffer before chunking
This introduces a buffer between writing from a handler and writing chunks. Further, it delays writing the header until the first full chunk is ready. In the case where the first full chunk is also the final chunk (for small responses), that means we can also compute a Content-Length, which is a nice side effect for certain benchmarks. Fixes #2357 R=golang-dev, dave, minux.ma, rsc, adg, balasanjay CC=golang-dev https://golang.org/cl/6964043
Diffstat (limited to 'src/pkg/database/sql')
0 files changed, 0 insertions, 0 deletions