echoip/http
ns abbdb05709
feat: graceful shutdown on SIGINT/SIGTERM
main now uses signal.NotifyContext to cancel a root context on
SIGINT or SIGTERM. Both the public and debug listeners share that
context; on cancellation each calls srv.Shutdown with a 30s
timeout to drain in-flight requests before exiting.

If either listener fails the other is signalled to shut down too,
and the process exits 1. Bad CLI args now exit 2 (was 0).

Adds TestGracefulShutdown which fires a slow request, cancels the
context mid-flight, and asserts the request completes successfully
and the server returns nil.
2026-05-07 07:21:07 +00:00
..
cache.go fix(cache): make cache truly LRU and resize correctly 2026-05-07 07:07:08 +00:00
cache_test.go fix(cache): make cache truly LRU and resize correctly 2026-05-07 07:07:08 +00:00
error.go Restructure 2018-02-10 13:24:32 +01:00
http.go feat: graceful shutdown on SIGINT/SIGTERM 2026-05-07 07:21:07 +00:00
http_test.go feat: graceful shutdown on SIGINT/SIGTERM 2026-05-07 07:21:07 +00:00