未验证 提交 0f3c353d 编写于 作者: S Salvatore Sanfilippo 提交者: GitHub

Merge pull request #6715 from trevor211/fixPotentialClusterLinkError

Fix petential cluster link error.
......@@ -2098,6 +2098,10 @@ static int updateMaxclients(long long val, long long prev, char **err) {
static char msg[128];
sprintf(msg, "The operating system is not able to handle the specified number of clients, try with %d", server.maxclients);
*err = msg;
if (server.maxclients > prev) {
server.maxclients = prev;
adjustOpenFilesLimit();
}
return 0;
}
if ((unsigned int) aeGetSetSize(server.el) <
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册