[PATCH 1/2] os: Don't limit MaxClients to MAXCLIENTS
Keith Packard
keithp at keithp.com
Tue Dec 15 13:00:44 PST 2009
On Tue, 15 Dec 2009 14:25:25 -0500, Adam Jackson <ajax at redhat.com> wrote:
> ... which is sort of a funny thing to say. MaxClients was actually the
> maximum file descriptor number to pass to select(); MAXCLIENTS is the
> client count limit. Typical servers have quite a few file descriptors
> open below MAXCLIENTS that are not clients (input devices, mostly),
> which means you end up losing client slots.
>
> Rename MaxClients to MaxFd, to reflect its true nature, and don't clamp it
> to MAXCLIENTS.
>
> Signed-off-by: Adam Jackson <ajax at redhat.com>
Reviewed-by: Keith Packard <keithp at keithp.com>
--
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-devel/attachments/20091215/4a7c3a17/attachment.pgp
More information about the xorg-devel
mailing list