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
d85af4d6
Unverified
Commit
d85af4d6
authored
Jul 15, 2020
by
Wen Hui
Committed by
GitHub
Jul 15, 2020
Browse files
correct error msg for num connections reaching maxclients in cluster mode (#7444)
parent
93bdbf5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
d85af4d6
...
@@ -907,10 +907,10 @@ static void acceptCommonHandler(connection *conn, int flags, char *ip) {
...
@@ -907,10 +907,10 @@ static void acceptCommonHandler(connection *conn, int flags, char *ip) {
{
{
char
*
err
;
char
*
err
;
if
(
server
.
cluster_enabled
)
if
(
server
.
cluster_enabled
)
err
=
"-ERR max number of clients reached
\r\n
"
;
else
err
=
"-ERR max number of clients + cluster "
err
=
"-ERR max number of clients + cluster "
"connections reached
\r\n
"
;
"connections reached
\r\n
"
;
else
err
=
"-ERR max number of clients reached
\r\n
"
;
/* That's a best effort error message, don't check write errors.
/* That's a best effort error message, don't check write errors.
* Note that for TLS connections, no handshake was done yet so nothing
* Note that for TLS connections, no handshake was done yet so nothing
...
...
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