From: antirez Date: Fri, 22 May 2009 19:56:00 +0000 (+0200) Subject: Fix: no connection timeout for the master! X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/c7cf2ec97cc81a854ab58fd6755dcfe1cbc3fdc9?ds=inline Fix: no connection timeout for the master! --- 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);