From 4d80b0e9657bed6db68debdc5aeab62121d27835 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 21 Dec 2018 17:11:52 +0100 Subject: [PATCH] RESP3: allow HELLO during busy script and not authenticated states. --- src/server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index d85e10d95..6c7692ed7 100644 --- a/src/server.c +++ b/src/server.c @@ -2582,7 +2582,9 @@ int processCommand(client *c) { } /* Check if the user is authenticated */ - if (server.requirepass && !c->authenticated && c->cmd->proc != authCommand) + if (server.requirepass && + !c->authenticated && + (c->cmd->proc != authCommand || c->cmd->proc == helloCommand)) { flagTransaction(c); addReply(c,shared.noautherr); @@ -2715,6 +2717,7 @@ int processCommand(client *c) { /* Lua script too slow? Only allow a limited number of commands. */ if (server.lua_timedout && c->cmd->proc != authCommand && + c->cmd->proc != helloCommand && c->cmd->proc != replconfCommand && !(c->cmd->proc == shutdownCommand && c->argc == 2 &&