fix for the server crash when the maxclients increased via config set
Former-commit-id: 34a97c447f8cb5753e0747b435c7ce1a5d381c47
This commit is contained in:
parent
e8753d1b4b
commit
3ee8edc8b0
@ -2273,7 +2273,7 @@ static int updateMaxclients(long long val, long long prev, const char **err) {
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
for (int iel = 0; iel < MAX_EVENT_LOOPS; ++iel)
|
for (int iel = 0; iel < cserver.cthreads; ++iel)
|
||||||
{
|
{
|
||||||
if ((unsigned int) aeGetSetSize(g_pserver->rgthreadvar[iel].el) <
|
if ((unsigned int) aeGetSetSize(g_pserver->rgthreadvar[iel].el) <
|
||||||
g_pserver->maxclients + CONFIG_FDSET_INCR)
|
g_pserver->maxclients + CONFIG_FDSET_INCR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user