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

Method ping

IceFireDB-SQLProxy/pkg/mysql/client/pool.go:471–481  ·  view source on GitHub ↗
(conn *Conn)

Source from the content-addressed store, hash-verified

469}
470
471func (pool *Pool) ping(conn *Conn) error {
472 deadline := time.Now().Add(100 * time.Millisecond)
473 _ = conn.SetDeadline(deadline)
474 err := conn.Ping()
475 if err != nil {
476 pool.logFunc(`Pool: ping query fail: %s`, err.Error())
477 } else {
478 _ = conn.SetDeadline(time.Time{})
479 }
480 return err
481}

Callers 2

GetConnMethod · 0.95
recheckConnectionsMethod · 0.95

Calls 2

PingMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected