mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
parent
643bc48a00
commit
f15042dbf0
11
src/server.c
11
src/server.c
@ -3548,12 +3548,19 @@ int processCommand(client *c) {
|
|||||||
return C_OK;
|
return C_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Lua script too slow? Only allow a limited number of commands. */
|
/* Lua script too slow? Only allow a limited number of commands.
|
||||||
|
* Note that we need to allow the transactions commands, otherwise clients
|
||||||
|
* sending a transaction with pipelining without error checking, may have
|
||||||
|
* the MULTI plus a few initial commands refused, then the timeout
|
||||||
|
* condition resolves, and the bottom-half of the transaction gets
|
||||||
|
* executed, see Github PR #7022. */
|
||||||
if (server.lua_timedout &&
|
if (server.lua_timedout &&
|
||||||
c->cmd->proc != authCommand &&
|
c->cmd->proc != authCommand &&
|
||||||
c->cmd->proc != helloCommand &&
|
c->cmd->proc != helloCommand &&
|
||||||
c->cmd->proc != replconfCommand &&
|
c->cmd->proc != replconfCommand &&
|
||||||
c->cmd->proc != multiCommand && c->cmd->proc != execCommand && c->cmd->proc != discardCommand &&
|
c->cmd->proc != multiCommand &&
|
||||||
|
c->cmd->proc != execCommand &&
|
||||||
|
c->cmd->proc != discardCommand &&
|
||||||
!(c->cmd->proc == shutdownCommand &&
|
!(c->cmd->proc == shutdownCommand &&
|
||||||
c->argc == 2 &&
|
c->argc == 2 &&
|
||||||
tolower(((char*)c->argv[1]->ptr)[0]) == 'n') &&
|
tolower(((char*)c->argv[1]->ptr)[0]) == 'n') &&
|
||||||
|
Loading…
Reference in New Issue
Block a user