Commit c7cf2ec9 authored by antirez's avatar antirez
Browse files

Fix: no connection timeout for the master!

parent 8c4d91fc
...@@ -657,6 +657,7 @@ void closeTimedoutClients(void) { ...@@ -657,6 +657,7 @@ void closeTimedoutClients(void) {
while ((ln = listYield(server.clients)) != NULL) { while ((ln = listYield(server.clients)) != NULL) {
c = listNodeValue(ln); c = listNodeValue(ln);
if (!(c->flags & REDIS_SLAVE) && /* no timeout for slaves */ if (!(c->flags & REDIS_SLAVE) && /* no timeout for slaves */
!(c->flags & REDIS_MASTER) && /* no timeout for masters */
(now - c->lastinteraction > server.maxidletime)) { (now - c->lastinteraction > server.maxidletime)) {
redisLog(REDIS_DEBUG,"Closing idle client"); redisLog(REDIS_DEBUG,"Closing idle client");
freeClient(c); freeClient(c);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment