]> git.saurik.com Git - redis.git/commitdiff
BLPOPping clients are no longer subject to connection timeouts, fixing issues 155
authorantirez <antirez@gmail.com>
Tue, 24 Aug 2010 10:10:59 +0000 (12:10 +0200)
committerantirez <antirez@gmail.com>
Tue, 24 Aug 2010 10:10:59 +0000 (12:10 +0200)
src/networking.c

index e5a66984662e622a84f2cce9c9be48d1de4e9b7d..10b9580ee45430fc0024b6b5b33ccf2a8a77b7ed 100644 (file)
@@ -466,6 +466,7 @@ void closeTimedoutClients(void) {
         if (server.maxidletime &&
             !(c->flags & REDIS_SLAVE) &&    /* no timeout for slaves */
             !(c->flags & REDIS_MASTER) &&   /* no timeout for masters */
+            !(c->flags & REDIS_BLOCKED) &&  /* no timeout for BLPOP */
             dictSize(c->pubsub_channels) == 0 && /* no timeout for pubsub */
             listLength(c->pubsub_patterns) == 0 &&
             (now - c->lastinteraction > server.maxidletime))