Need help with go-graceful-restart-example?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

429 Stars 91 Forks BSD 2-Clause "Simplified" License 5 Commits 2 Opened issues


Example of server with graceful restart enable

Services available


Need anything else?

Contributors list

Server graceful restart with Go

Install and run the server

$ go get
$ go-graceful-restart-example
2014/12/14 20:26:42 [Server - 4301] Listen on [::]:12345

Connect with the client

$ cd $GOPATH/src/
$ go run pong.go

Graceful restart

# The server pid is included in its log, in the example: 4301

$ kill -HUP

Stop with timeout

Let 10 seconds for the current requests to finish.

$ kill -TERM 

Gist of output

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.