Fix: no connection timeout for the master!

This commit is contained in:
antirez 2009-05-22 21:56:00 +02:00
parent 8c4d91fcf8
commit c7cf2ec97c

View File

@ -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);