golang http 服务优雅重启组件
Require Go 1.8+
go build ./demo/main.go && ./main
curl http://localhost:1991/slow?ms=1
curl http://localhost:1991/slow?ms=20000
kill -SIGUSR2 pid
curl http://localhost:1991/slow?ms=1
本项目克隆于github.com/tabalt/gracehttp,在此对原作者表示感谢。