dix: Remove MaxClients

This variable was no longer being read anywhere. MAXCLIENTS the macro is
the compile-time maximum limit, LIMITCLIENTS the macro is the default
limit, LimitClients the variable is the limit for the current server.

Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Adam Jackson 2018-08-29 15:48:28 -04:00 • committed by Adam Jackson
commit 3a4d7c79e7
3 changed files with 0 additions and 16 deletions

View file

@ -120,7 +120,6 @@ SOFTWARE.
struct ospoll *server_poll;
int MaxClients = 0;
Bool NewOutputPending; /* not yet attempted to write some new output */
Bool NoListenAll; /* Don't establish any listening sockets */
@ -162,18 +161,6 @@ lookup_trans_conn(int fd)
return NULL;
}
/* Set MaxClients */
void
InitConnectionLimits(void)
{
MaxClients = MAXCLIENTS;
#ifdef DEBUG
ErrorF("InitConnectionLimits: MaxClients = %d\n", MaxClients);
#endif
}
/*
* If SIGUSR1 was set to SIG_IGN when the server started, assume that either
*