code: func (srv *endlessServer) shutdown() {
  	if srv.getState() != STATE_RUNNING {
  		return
  	}
  
  	srv.setState(STATE_SHUTTING_DOWN)
  	if DefaultHammerTime >= 0 {
  		go srv.hammerTime(DefaultHammerTime)
  	}
  	// disable keep-alives on existing connections
  	srv.SetKeepAlivesEnabled(false)
  	err := srv.EndlessListener.Close()
  	if err != nil {
  		log.Println(syscall.Getpid(), "Listener.Close() error:", err)
  	} else {
  		log.Println(syscall.Getpid(), srv.EndlessListener.Addr(), "Listener closed.")
  	}
  }
docs: /*
  shutdown closes the listener so that no new connections are accepted. it also
  starts a goroutine that will hammer (stop all running requests) the server
  after DefaultHammerTime.
  */