implement graceful restart

This commit is contained in:
smallnest
2020-07-13 18:00:08 +08:00
parent ed08247be3
commit bd48ea556b
2 changed files with 42 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ import (
func (s *Server) startGateway(network string, ln net.Listener) net.Listener {
if network != "tcp" && network != "tcp4" && network != "tcp6" {
log.Infof("network is not tcp/tcp4/tcp6 so can not start gateway")
// log.Infof("network is not tcp/tcp4/tcp6 so can not start gateway")
return ln
}