Commit 3c46b13a authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Merge pull request #128 from clongeau/master

make redisConnectWithTimeout connect to 127.0.0.1 instead of 127.0.0.2 
parents 0fff0f18 8cbedcec
...@@ -10,7 +10,7 @@ int main(void) { ...@@ -10,7 +10,7 @@ int main(void) {
redisReply *reply; redisReply *reply;
struct timeval timeout = { 1, 500000 }; // 1.5 seconds struct timeval timeout = { 1, 500000 }; // 1.5 seconds
c = redisConnectWithTimeout((char*)"127.0.0.2", 6379, timeout); c = redisConnectWithTimeout((char*)"127.0.0.1", 6379, timeout);
if (c->err) { if (c->err) {
printf("Connection error: %s\n", c->errstr); printf("Connection error: %s\n", c->errstr);
exit(1); exit(1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment