mirror of
https://github.com/tailscale/tailscale.git
synced 2026-10-09 11:52:00 -04:00
http.ResponseController.Flush prefers a FlushError method at each level of the ResponseWriter wrapper chain and falls back to Flusher.Flush, which can't report an error. loggingResponseWriter only had Flush, so handlers using ResponseController to flush never saw the underlying writer's flush errors, such as a stream reset by an expired write deadline. Add FlushError that delegates via ResponseController so errors from the wrapped writer propagate. Updates tailscale/corp#48531 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> Change-Id: I259c5de234435f632387261165fe15dcaf34ff45