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

Method ping

IceFireDB-SQLite/pkg/mysql/client/pool.go:465–475  ·  view source on GitHub ↗
(conn *Conn)

Source from the content-addressed store, hash-verified

463}
464
465func (pool *Pool) ping(conn *Conn) error {
466 deadline := time.Now().Add(100 * time.Millisecond)
467 _ = conn.SetDeadline(deadline)
468 err := conn.Ping()
469 if err != nil {
470 pool.logFunc(`Pool: ping query fail: %s`, err.Error())
471 } else {
472 _ = conn.SetDeadline(time.Time{})
473 }
474 return err
475}

Callers 2

GetConnMethod · 0.95
recheckConnectionsMethod · 0.95

Calls 2

PingMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected