]> git.saurik.com Git - redis.git/commitdiff
Fix: no connection timeout for the master!
authorantirez <antirez@gmail.com>
Fri, 22 May 2009 19:56:00 +0000 (21:56 +0200)
committerantirez <antirez@gmail.com>
Fri, 22 May 2009 19:56:00 +0000 (21:56 +0200)
redis.c

diff --git a/redis.c b/redis.c
index fff1534b53db940223e912fea040b33c24d58ea7..358463cdb25f999af5a910803a6f3a4513e2714d 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -657,6 +657,7 @@ void closeTimedoutClients(void) {
     while ((ln = listYield(server.clients)) != NULL) {
         c = listNodeValue(ln);
         if (!(c->flags & REDIS_SLAVE) &&    /* no timeout for slaves */
+            !(c->flags & REDIS_MASTER) &&   /* no timeout for masters */
              (now - c->lastinteraction > server.maxidletime)) {
             redisLog(REDIS_DEBUG,"Closing idle client");
             freeClient(c);