mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Add test for read timeout option (#877)
Add test for ReadTimeout option
This commit is contained in:
committed by
Vladimir Mihailenco
parent
ae8fdc56f3
commit
b834145dc7
@ -48,7 +48,7 @@ type Options struct {
|
||||
// Default is 5 seconds.
|
||||
DialTimeout time.Duration
|
||||
// Timeout for socket reads. If reached, commands will fail
|
||||
// with a timeout instead of blocking.
|
||||
// with a timeout instead of blocking. Use value -1 for no timeout and 0 for default.
|
||||
// Default is 3 seconds.
|
||||
ReadTimeout time.Duration
|
||||
// Timeout for socket writes. If reached, commands will fail
|
||||
|
Reference in New Issue
Block a user