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

This commit is contained in:
Wen Hui 2020-07-15 05:38:47 -04:00 committed by GitHub
parent 93bdbf5aa4
commit d85af4d6f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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