Skip to content

Glossary: Go in Practice

Graceful shutdown

Also written: Shutdown, stopping cleanly

Stopping a server by letting requests in progress finish before it exits. `srv.Shutdown` with a timeout does this when a signal such as SIGTERM arrives.

Where the book teaches it

Related terms

Signal; SIGTERMhttp.Serverdocker stop