Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
4d80b0e9
Commit
4d80b0e9
authored
Dec 21, 2018
by
antirez
Browse files
RESP3: allow HELLO during busy script and not authenticated states.
parent
9018388c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
4d80b0e9
...
...
@@ -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
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment