diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2013-01-11 10:03:43 -0800 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2013-01-11 10:03:43 -0800 |
| commit | bef4cb475c0638ab5193f75f2683b35a7c7f6547 (patch) | |
| tree | 5be14be3f30940b31e1b102bfb715b78ce49e9a6 /src/pkg/database/sql | |
| parent | 98259b92115f24b41c5ba40c3cddb68f6f0077f8 (diff) | |
| download | go-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
