From c7cf2ec97cc81a854ab58fd6755dcfe1cbc3fdc9 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 22 May 2009 21:56:00 +0200 Subject: [PATCH] Fix: no connection timeout for the master! --- redis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/redis.c b/redis.c index fff1534b..358463cd 100644 --- 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);