mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Fix: no connection timeout for the master!
This commit is contained in:
parent
8c4d91fcf8
commit
c7cf2ec97c
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user