Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which action implements a bounded graceful shutdown for an `http.Server`?" on CodeWiki (https://codewiki.com/practice/mcq/go/checkpoint-4/checkpoint-4-graceful-shutdown/).
Context (verbatim from the page):
"""
Which action implements a bounded graceful shutdown for an `http.Server`?
Call `Shutdown` with a timeout context so in-flight requests get a bounded chance to finish.
Call `os.Exit` from the signal handler before waiting for handlers.
Close every client connection immediately and wait without a deadline.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Go. Where you are unsure, say so.