Package gracenet provides a family of Listen functions that either open a fresh connection or provide an inherited connection from when the process was started. The behave like their counterparts in the net package, but transparently provide support for graceful restarts without dropping connections. This is provided in a systemd socket activation compatible form to allow using socket activation.
BUG: Doesn't handle closing of listeners.
// // BUG: Doesn't handle closing of listeners. package gracenet import (
package gracenet import (
"syscall" "github.com/facebookgo/grace/gracenet" "github.com/facebookgo/httpdown" )