]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.12] net/http/httputil: make ReverseProxy flush headers on FlushIn...
authorJordan Liggitt <liggitt@google.com>
Fri, 29 Mar 2019 03:37:54 +0000 (23:37 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 2 Apr 2019 03:09:03 +0000 (03:09 +0000)
commitec06e9ba4578d26fdb9c521d4042e3f9f7f42435
treec67e293ea0fee6ff64e937297372c4877b49f05f
parentaeb9d03e4a570890b32aafd7aee27b00946ebbe4
[release-branch.go1.12] net/http/httputil: make ReverseProxy flush headers on FlushInterval

A regression was introduced in CL 137335 (5440bfc) that caused FlushInterval
to not be honored until the first Write() call was encountered. This change
starts the flush timer as part of setting up the maxLatencyWriter.

Fixes #31144

Change-Id: I75325bd926652922219bd1457b2b00ac6d0d41b0
Reviewed-on: https://go-review.googlesource.com/c/go/+/170066
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
(cherry picked from commit 2cc347382f4df3fb40d8d81ec9331f0748b1c394)
Reviewed-on: https://go-review.googlesource.com/c/go/+/170137
src/net/http/httputil/reverseproxy.go
src/net/http/httputil/reverseproxy_test.go