MCPcopy
hub / github.com/aceld/zinx / Stop

Method Stop

znet/server.go:460–467  ·  view source on GitHub ↗

Stop stops the server (停止服务)

()

Source from the content-addressed store, hash-verified

458
459// Stop stops the server (停止服务)
460func (s *Server) Stop() {
461 zlog.Ins().InfoF("[STOP] Zinx server , name %s", s.Name)
462
463 // Clear other connection information or other information that needs to be cleaned up
464 // (将其他需要清理的连接信息或者其他信息 也要一并停止或者清理)
465 s.ConnMgr.ClearConn()
466 close(s.exitChan)
467}
468
469// Serve runs the server (运行服务)
470func (s *Server) Serve() {

Callers 2

TestServerDeadLockFunction · 0.95

Calls 3

InsFunction · 0.92
InfoFMethod · 0.65
ClearConnMethod · 0.65

Tested by 2

TestServerDeadLockFunction · 0.76