Questions tagged [go-graceful]

For questions about the "graceful" Go 1.3+ package by tylerb, available on GitHub.

Graceful is a Go (1.3+) package which will gracefully shutdown http.Handler servers. It's available on GitHub. As of Go 1.8, it is largely made superfluous by the built-in Shutdown() in http.Server.

3 questions
2
votes
1 answer

Golang graceful HTTP server shutdown with error handling

I'm in the process of getting my HTTP server to gracefully shut down. I've taken tips from the post here, and have set up my code like this so far: func start() { //...... //START HTTP/SOCKET LISTENER if settings.TLS { …
hewiefreeman
  • 1,137
  • 1
  • 14
  • 31
0
votes
1 answer

How can I see or test graceful restarts in Go?

I serve HTTP over gin's https://github.com/fvbock/endless. I would like to see the differences from the basic HTTP server. I've sent syscall.SIGUSR1 signal with: syscall.Kill(getPid(), syscall.SIGUSR1) The app doesn't exit, but I cannot detect the…
-1
votes
1 answer

Golang Undefined

I'm trying to compile my application in Go and I'm getting the following errors: C:\Users\Root\go\src\github.com\ussssseeeeeeerrr\test> go build # github.com/facebookgo/grace/gracehttp ..\..\facebookgo\grace\gracehttp\http.go:104:53: undefined:…