Hi list,

i'm experimenting with libevent in an heavy threaded application.

The application works quite well using all the event_base_ stuff to handle the events in a thread safe way.

My problem is that all the threads that i create have a short life (short as as little as a couple of minutes), so i have to event_init() once in every thread to have an event base struct.

No problem about the methods... the problem arises because even_init() calls evsignal_init() which opens a socket pair which is completely lost and those sockets are never closed.

I end up having a couple of fresh, unused and useless file descriptors for every thread that i have created and there seems no way to close those sockets and sockets are limited...

Am i missing something or is this a known issue ?

This behaviour makes libevent useless for many threaded apps ...

Thanks for your answers...

Massimo Cetra


_______________________________________________
Libevent-users mailing list
[email protected]
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to