MCPcopy
hub / github.com/name5566/leaf / Close

Method Close

network/tcp_server.go:116–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114}
115
116func (server *TCPServer) Close() {
117 server.ln.Close()
118 server.wgLn.Wait()
119
120 server.mutexConns.Lock()
121 for conn := range server.conns {
122 conn.Close()
123 }
124 server.conns = nil
125 server.mutexConns.Unlock()
126 server.wgConns.Wait()
127}

Callers 1

RunMethod · 0.95

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected