I've been setting up conserver to provide console access and logging for
VMware machines running Linux, using the uds console type and a virtual
serial port. When the VM isn't running conserver uses another file
descriptor every time it tries to open the socket. If it's configured to
automatically reopen consoles that go down it eventually runs out of
file descriptors.
I added a few lines to consent.c to close the socket on failure and it
seems to work (patch against 8.1.15 attached). I'm not sure that this is
really the right way to handle it, but I haven't seen any problems in my
testing and the number of open file descriptors holds steady.
--
Michael Heironimus
VMware machines running Linux, using the uds console type and a virtual
serial port. When the VM isn't running conserver uses another file
descriptor every time it tries to open the socket. If it's configured to
automatically reopen consoles that go down it eventually runs out of
file descriptors.
I added a few lines to consent.c to close the socket on failure and it
seems to work (patch against 8.1.15 attached). I'm not sure that this is
really the right way to handle it, but I haven't seen any problems in my
testing and the number of open file descriptors holds steady.
--
Michael Heironimus