Merge pull request #128 from clongeau/master
make redisConnectWithTimeout connect to 127.0.0.1 instead of 127.0.0.2
This commit is contained in:
commit
3c46b13a62
@ -10,7 +10,7 @@ int main(void) {
|
||||
redisReply *reply;
|
||||
|
||||
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) {
|
||||
printf("Connection error: %s\n", c->errstr);
|
||||
exit(1);
|
||||
|
Loading…
Reference in New Issue
Block a user