diff --git a/server.go b/server.go index 82eeef70dc..d47a756618 100644 --- a/server.go +++ b/server.go @@ -1780,7 +1780,7 @@ func (s *Server) Serve(ln net.Listener) error { // When Shutdown is called, Serve, ListenAndServe, and ListenAndServeTLS immediately return nil. // Make sure the program doesn't exit and waits instead for Shutdown to return. // -// Shutdown does not close keepalive connections so its recommended to set ReadTimeout to something else than 0. +// Shutdown does not close keepalive connections so its recommended to set ReadTimeout and IdleTimeout to something else than 0. func (s *Server) Shutdown() error { s.mu.Lock() defer s.mu.Unlock()