]> git.saurik.com Git - redis.git/commit
MIGRATE: retry one time on I/O error.
authorantirez <antirez@gmail.com>
Wed, 14 Nov 2012 10:30:24 +0000 (11:30 +0100)
committerantirez <antirez@gmail.com>
Wed, 14 Nov 2012 10:30:24 +0000 (11:30 +0100)
commit2feef47aa1642df8637522c3d0b8efa16ec4bbc0
tree857c6cd07d0f77b03f12418551d626a49d7f75ed
parent17411f7afd30f76962652e28c408dcd07e213fd9
MIGRATE: retry one time on I/O error.

Now that we cache connections, a retry attempt makes sure that the
operation don't fail just because there is an existing connection error
on the socket, like the other end closing the connection.

Unfortunately this condition is not detectable using
getsockopt(SO_ERROR), so the only option left is to retry.

We don't retry on timeouts.
src/cluster.c