diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2018-09-25 16:13:17 +0000 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-10-09 15:26:06 +0000 |
| commit | 5440bfc2ea8c0a4c78d5161605659c07ea10e37a (patch) | |
| tree | 8115b4555f52a7c50255044f5184156aa3117804 /src/runtime/mbitmap.go | |
| parent | ffc7bc55f351976c9bb1e04aeba75397d40cbb53 (diff) | |
| download | go-5440bfc2ea8c0a4c78d5161605659c07ea10e37a.tar.xz | |
net/http/httputil: rewrite flushing code, disable on Server-Sent Events
* Rewrite the flushing code to not use a persistent goroutine, which
also simplifies testing.
* Define the meaning of a negative flush interval. Its meaning doesn't
change, but now it's locked in, and then we can use it to optimize
the performance of the non-buffered case to avoid use of an AfterFunc.
* Support (internal-only) special casing of FlushInterval values per
request/response.
* For now, treat Server-Sent Event responses as unbuffered. (or rather,
immediately flushed from the buffer per-write)
Fixes #27816
Change-Id: Ie0f975c997daa3db539504137c741a96d7022665
Reviewed-on: https://go-review.googlesource.com/c/137335
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'src/runtime/mbitmap.go')
0 files changed, 0 insertions, 0 deletions
