[Pkg-acpi-devel] Bug#565908: acpid: causes Xorg to hang because of "too many connections"

Willi Mann willi at wm1.at
Wed Jan 20 18:27:44 UTC 2010

Ted Felix schrieb:
>  If you don't mind grabbing the code and building it, you can go into
> the file connection_list.c and change this line:
> #define MAX_CONNECTIONS 10
>  To this:
> #define MAX_CONNECTIONS 20
>  That will get rid of the "Too many connections." message in the log. 
> Whether it will solve your problem, I'm not sure.  I will include this
> change in my next monthly release on 2/15.  Let me know if you need more
> info.

I've just found a more reliable way to reproduce this problem: Simply
switch 10 times between the X session and a console.

However, changing MAX_CONNECTIONS to 20 solves the problem - I tried to
switch more than 20 times and the problem did not reappear.

Attached is a patch that, apart from changing MAX_CONNECTIONS,
recalculates highestfd in delete_connection. I wrote that patch because
I first thought that this might be the source of the problem, but it
isn't. But it might be useful anyway.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: connection_list.diff
Type: text/x-patch
Size: 669 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20100120/b981bf0b/attachment.bin>

More information about the Pkg-acpi-devel mailing list