This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Q: problem "maximum number of clients reached"


On Tue, 5 Jun 2001, Heiko Nardmann wrote:

> I suddenly got the following message:
> 
> Xlib: connection to "sn-pc161.cubis.de:0.0" refused by server
> Xlib: Maximum number of clients reached
> 
> How can I increase the maximum number of clients?
> 
recompile the XServer :(

in programs/Xserver/os/connection.c put another line after 
    lastfdesc = sysconf(_SC_OPEN_MAX) - 1;   
with
    lastfdesc = 255;

I don't know if it's safe, but I had it running in a similar way 
for hours. 

Or better, ask on cygwin-ml why sysconf(_SC_OPEN_MAX) says
that only 26? open files are allowed and beg them to change this.
Once they have changed it, XWin should accept more connections without
recompiling. :)

bye
	ago

-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de 
 http://www.gotti.org
 +49 3725 349 80 80


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]