mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
This reverts commit 346bfafddd
.
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user