mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Merge pull request #6715 from trevor211/fixPotentialClusterLinkError
Fix petential cluster link error.
This commit is contained in:
commit
0f3c353dd3
@ -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) <
|
||||
|
Loading…
Reference in New Issue
Block a user