Learn how graceful HTTP server shutdown works through
(*http.Server).Shutdown(ctx), why a context without a deadline is dangerous, and which "canonical" pattern to use:
context.WithTimeout,
defer
cancel
(), correct logging of
context.DeadlineExceeded, and filtering of
http.ErrServerClosed. We will also show graceful shutdown in
main
() via
signal.NotifyContext.