diff --git a/src/replication.c b/src/replication.c index 3aefc83e..335a48f4 100644 --- a/src/replication.c +++ b/src/replication.c @@ -1377,7 +1377,7 @@ error: int connectWithMaster(void) { int fd; - fd = anetTcpNonBlockBindConnect(NULL, + fd = anetTcpNonBlockBestEffortBindConnect(NULL, server.masterhost,server.masterport,REDIS_BIND_ADDR); if (fd == -1) { redisLog(REDIS_WARNING,"Unable to connect to MASTER: %s",