mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
RESP3: allow HELLO during busy script and not authenticated states.
This commit is contained in:
parent
9018388c3f
commit
4d80b0e965
@ -2582,7 +2582,9 @@ int processCommand(client *c) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Check if the user is authenticated */
|
/* 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);
|
flagTransaction(c);
|
||||||
addReply(c,shared.noautherr);
|
addReply(c,shared.noautherr);
|
||||||
@ -2715,6 +2717,7 @@ int processCommand(client *c) {
|
|||||||
/* Lua script too slow? Only allow a limited number of commands. */
|
/* Lua script too slow? Only allow a limited number of commands. */
|
||||||
if (server.lua_timedout &&
|
if (server.lua_timedout &&
|
||||||
c->cmd->proc != authCommand &&
|
c->cmd->proc != authCommand &&
|
||||||
|
c->cmd->proc != helloCommand &&
|
||||||
c->cmd->proc != replconfCommand &&
|
c->cmd->proc != replconfCommand &&
|
||||||
!(c->cmd->proc == shutdownCommand &&
|
!(c->cmd->proc == shutdownCommand &&
|
||||||
c->argc == 2 &&
|
c->argc == 2 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user