1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Conn timeout should be higher than read timeout

This commit is contained in:
Vladimir Mihailenco
2018-07-22 08:49:48 +03:00
parent ee41b90923
commit b92dacbfa7
4 changed files with 8 additions and 9 deletions

View File

@ -309,7 +309,7 @@ func (c *PubSub) ReceiveTimeout(timeout time.Duration) (interface{}, error) {
return nil, err
}
cn.SetReadTimeout(timeout)
cn.SetReadTimeout(readTimeout(timeout))
err = c.cmd.readReply(cn)
c.releaseConn(cn, err)
if err != nil {