From be6cbd3a6e466c43300cba428f8f87a6d272c6f3 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 11 Oct 2012 18:34:05 +0200 Subject: [PATCH 1/1] 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. --- src/redis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/redis.c b/src/redis.c index 024403fd..784d56e4 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1667,6 +1667,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') && -- 2.45.2