1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Revert "ConnPool check fd for bad conns (#1824)" (#1849)

This reverts commit 346bfafddd.
This commit is contained in:
monkey92t
2021-08-06 17:16:22 +08:00
committed by GitHub
parent 67ae445d24
commit fd3025bfed
10 changed files with 18 additions and 204 deletions

View File

@ -520,7 +520,7 @@ func (p *ConnPool) reapStaleConn() *Conn {
func (p *ConnPool) isStaleConn(cn *Conn) bool {
if p.opt.IdleTimeout == 0 && p.opt.MaxConnAge == 0 {
return connCheck(cn.netConn) != nil
return false
}
now := time.Now()
@ -531,5 +531,5 @@ func (p *ConnPool) isStaleConn(cn *Conn) bool {
return true
}
return connCheck(cn.netConn) != nil
return false
}