1
0
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:
andriikushch
2018-10-05 08:46:29 +02:00
committed by Vladimir Mihailenco
parent ae8fdc56f3
commit b834145dc7
2 changed files with 26 additions and 1 deletions

View File

@ -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