From: antirez Date: Fri, 22 May 2009 18:55:09 +0000 (+0200) Subject: replication slave timeout when receiving the initial bulk data set to 3600 seconds... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/8c4d91fcf8624ebff4434d259c19046fdd13240d?ds=inline 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 --- 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));