]> git.saurik.com Git - redis.git/commitdiff
replication slave timeout when receiving the initial bulk data set to 3600 seconds...
authorantirez <antirez@gmail.com>
Fri, 22 May 2009 18:55:09 +0000 (20:55 +0200)
committerantirez <antirez@gmail.com>
Fri, 22 May 2009 18:55:09 +0000 (20:55 +0200)
redis.c

diff --git a/redis.c b/redis.c
index ea7d4b277ee820ed79d7ad62bb0642237f6b6930..fff1534b53db940223e912fea040b33c24d58ea7 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -3862,7 +3862,7 @@ static int syncWithMaster(void) {
         return REDIS_ERR;
     }
     /* Read the bulk write count */
         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));
         close(fd);
         redisLog(REDIS_WARNING,"I/O error reading bulk count from MASTER: %s",
             strerror(errno));