ListenAndServe is equivalent to http.Server.ListenAndServe with graceful shutdown enabled.
timeout is the duration to wait until killing active requests and stopping the server. If timeout is 0, the server never times out. It waits for all active requests to finish.
ListenAndServe is referenced in 7 repositoriesgithub.com/admpub/echo-example
- 1 reference in graceful-shutdown/graceful/server.go
- 1 reference in api.go
- 1 reference in recipes/graceful-shutdown/graceful/server.go