Open pjebs opened 2 years ago
Maybe something like this: https://pkg.go.dev/net/http#Server.Close if it's taking too long to gracefully shutdown.
In theory you can just close the listener, and keep a list of connections using Server.ConnState
and close those as well.
See https://github.com/gofiber/fiber/issues/2087
The ability to force shutdown a server if graceful shutdown takes too long (based on configurable time duration)