From: antirez Date: Thu, 11 Oct 2012 16:34:05 +0000 (+0200) Subject: Allow AUTH when Redis is busy because of timedout Lua script. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/0e25c0ccf4d1b2c329366aecbe821c5b317be230 Allow AUTH when Redis is busy because of timedout Lua script. If the server is password protected we need to accept AUTH when there is a server busy (-BUSY) condition, otherwise it will be impossible to send SHUTDOWN NOSAVE or SCRIPT KILL. This fixes issue #708. --- diff --git a/src/redis.c b/src/redis.c index 0656d7c2..8dc6b9a9 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1623,6 +1623,7 @@ int processCommand(redisClient *c) { /* Lua script too slow? Only allow commands with REDIS_CMD_STALE flag. */ if (server.lua_timedout && + c->cmd->proc != authCommand && !(c->cmd->proc == shutdownCommand && c->argc == 2 && tolower(((char*)c->argv[1]->ptr)[0]) == 'n') &&