daaku/go.redis — pull request #2 by alicebob (2014-09-09 08:58:11+00:00)
Title: redis-server connect errors in test

Hi Naitik,

sometimes redis-server fails to bind on the ipv4 port, but manages to bind on the ipv6 one. Giving it an explicit 'bind 127.0.0.1' seems to give me less problems (you connect to '127.0.0.1' anyway so it shouldn't break anything).

Even with that fix redis-server still fails to start up properly every now and then, and in that case the NewServerClient() is stuck in a loop, trying to connect. This fix makes it err after a second.