[PATCH 2/2] configurable maximum number of clients

Keith Packard keithp at keithp.com
Mon Aug 24 10:35:04 PDT 2015


Olivier Fourdan <ofourdan at redhat.com> writes:

> Make the maximum number of clients user configurable, either from the command
> line or from xorg.conf
>
> This patch works by using the MAXCLIENTS (raised to 512) as the maximum
> allowed number of clients, but allowing the actual limit to be set by the
> user to a lower value (keeping the default of 256).
>
> There is a limit size of 29 bits to be used to store both the client ID and
> the X resources ID, so by reducing the number of clients allowed to connect to
> the X server, the user can increase the number of X resources per client or
> vice-versa.
>
> Parts of this patch are based on a similar patch from Adam Jackson
> <ajax at redhat.com>
>
> Signed-off-by: Adam Jackson <ajax at redhat.com>
> Signed-off-by: Olivier Fourdan <ofourdan at redhat.com>
> Reviewed-by: Adam Jackson <ajax at redhat.com>
> ---
>  v2: Use the user set client limit in multiple places instead of MAXCLIENTS,
>      Bump value for MAXCLIENTS, MAXSELECT, MAXSOCKS and OPEN_MAX to 512,
>      Requires an updated Xproto.
>  v3: Fix 256 limit still remaining in InitConnectionLimits()

I've squashed these two patches together as they are inter-dependent and
merged them.
   7ecdfbf..d206c24  master -> master

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20150824/637327a9/attachment.sig>


More information about the xorg-devel mailing list