MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / Close

Method Close

protocol/tcp/reply.go:62–71  ·  view source on GitHub ↗

Close handler

()

Source from the content-addressed store, hash-verified

60
61// Close handler
62func (t *TcpReplyHandler) Close() error {
63 fmt.Println("tcp server close")
64 t.isClosed.SetBoolAtomic(true)
65 t.activeConn.Range(func(key, value interface{}) bool {
66 client := key.(*ReplyClient)
67 _ = client.Close()
68 return true
69 })
70 return nil
71}

Callers

nothing calls this directly

Calls 2

SetBoolAtomicMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected