From 8c4d91fcf8624ebff4434d259c19046fdd13240d Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 22 May 2009 20:55:09 +0200 Subject: [PATCH] replication slave timeout when receiving the initial bulk data set to 3600 seconds, now that replication is non-blocking the server must save the db before to start the async replication and this can take a lot of time with huge datasets --- redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis.c b/redis.c index ea7d4b27..fff1534b 100644 --- a/redis.c +++ b/redis.c @@ -3862,7 +3862,7 @@ static int syncWithMaster(void) { return REDIS_ERR; } /* Read the bulk write count */ - if (syncReadLine(fd,buf,1024,5) == -1) { + if (syncReadLine(fd,buf,1024,3600) == -1) { close(fd); redisLog(REDIS_WARNING,"I/O error reading bulk count from MASTER: %s", strerror(errno)); -- 2.45.2