diff --git a/src/replication.c b/src/replication.c index ca263527adc..c0145b4a1ed 100644 --- a/src/replication.c +++ b/src/replication.c @@ -1384,7 +1384,7 @@ void syncWithMaster(aeEventLoop *el, int fd, void *privdata, int mask) { 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",