Set MaxRetries count 35/935/2 v0.3.1
authorMarco Tallskog <marco.tallskog@nokia.com>
Wed, 11 Sep 2019 09:53:04 +0000 (12:53 +0300)
committerMarco Tallskog <marco.tallskog@nokia.com>
Wed, 11 Sep 2019 10:06:21 +0000 (13:06 +0300)
commitd64c510705ac1623c052aedc4ddc50aabeb1e798
treec1f4d183ee340a6f37549a153779414175f6aa7d
parenta10caff26de79e06caac2d00d3c11218e2d7ee87
Set MaxRetries count

When redis client is created, set the MaxRetries count to 2. This
defines the number of times the command is tried to execute. In cases
where redis server is dead but the client hasn't noticed that yet, an
EOF error is returned from the first try. With the second attempt, a
proper error is returned indicating that the connection was refused.

Change-Id: I28ffcf83666edda9b715dafe6055cef4c633f757
Signed-off-by: Marco Tallskog <marco.tallskog@nokia.com>
internal/sdlgoredis/sdlgoredis.go