mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05: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…
Reference in New Issue
Block a user