mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Fix: no connection timeout for the master!
This commit is contained in:
1
redis.c
1
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);
|
||||
|
||||
Reference in New Issue
Block a user