diff --git a/src/net/http/server.go b/src/net/http/server.go index bcc283b66c..2eb16ff632 100644 --- a/src/net/http/server.go +++ b/src/net/http/server.go @@ -3177,8 +3177,8 @@ func (srv *Server) onceSetNextProtoDefaults() { // After such a timeout, writes by h to its ResponseWriter will return // ErrHandlerTimeout. // -// TimeoutHandler buffers all Handler writes to memory and does not -// support the Hijacker or Flusher interfaces. +// TimeoutHandler supports the Flusher and Pusher interfaces but does not +// support the Hijacker interface. func TimeoutHandler(h Handler, dt time.Duration, msg string) Handler { return &timeoutHandler{ handler: h,