Skip to content

Commit ade65ef

Browse files
committed
bugfix: fix i/o timeout: connection was bad
1 parent 2eebdb9 commit ade65ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/pool.go

+2
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,8 @@ func (pool *Pool) ping(conn *Conn) error {
471471
err := conn.Ping()
472472
if err != nil {
473473
pool.logFunc(`Pool: ping query fail: %s`, err.Error())
474+
} else {
475+
conn.SetDeadline(time.Time{})
474476
}
475477
return err
476478
}

0 commit comments

Comments
 (0)