Commit 0f75036c authored by Wen Hui's avatar Wen Hui Committed by Oran Agra
Browse files

correct error msg for num connections reaching maxclients in cluster mode (#7444)


(cherry picked from commit d85af4d6)
parent b1a01fda
......@@ -907,10 +907,10 @@ static void acceptCommonHandler(connection *conn, int flags, char *ip) {
{
char *err;
if (server.cluster_enabled)
err = "-ERR max number of clients reached\r\n";
else
err = "-ERR max number of clients + cluster "
"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.
* Note that for TLS connections, no handshake was done yet so nothing
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment