From: pokutuna Date: Fri, 25 Oct 2019 18:58:48 +0000 (+0000) Subject: net/http: fix comment TimeoutHandler no longer supports Flusher X-Git-Tag: go1.14beta1~574 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=46e0d724b3;p=gostls13.git net/http: fix comment TimeoutHandler no longer supports Flusher Fixes #35161 Updates #34439 Change-Id: I978534cbb8b9fb32c115dba0066cf099c61d8ee9 GitHub-Last-Rev: d60581635e8cefb7cfc4b571057542395034c575 GitHub-Pull-Request: golang/go#35162 Reviewed-on: https://go-review.googlesource.com/c/go/+/203478 Reviewed-by: Bryan C. Mills Run-TryBot: Bryan C. Mills TryBot-Result: Gobot Gobot --- diff --git a/src/net/http/server.go b/src/net/http/server.go index ff93e59bc0..b2c071fc21 100644 --- a/src/net/http/server.go +++ b/src/net/http/server.go @@ -3182,8 +3182,8 @@ func (srv *Server) onceSetNextProtoDefaults() { // After such a timeout, writes by h to its ResponseWriter will return // ErrHandlerTimeout. // -// TimeoutHandler supports the Flusher and Pusher interfaces but does not -// support the Hijacker interface. +// TimeoutHandler supports the Pusher interface but does not support +// the Hijacker or Flusher interfaces. func TimeoutHandler(h Handler, dt time.Duration, msg string) Handler { return &timeoutHandler{ handler: h,