MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / handshake

Method handshake

IceFireDB-SQLProxy/pkg/mysql/client/conn.go:91–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91func (c *Conn) handshake() error {
92 var err error
93 if err = c.readInitialHandshake(); err != nil {
94 c.Close()
95 return errors.Trace(err)
96 }
97
98 if err := c.writeAuthHandshake(); err != nil {
99 c.Close()
100
101 return errors.Trace(err)
102 }
103
104 if err := c.handleAuthResult(); err != nil {
105 c.Close()
106 return errors.Trace(err)
107 }
108
109 return nil
110}
111
112func (c *Conn) Close() error {
113 return c.Conn.Close()

Callers 1

ConnectFunction · 0.45

Calls 4

readInitialHandshakeMethod · 0.95
CloseMethod · 0.95
writeAuthHandshakeMethod · 0.95
handleAuthResultMethod · 0.95

Tested by

no test coverage detected