[asterisk-dev] select() and friends in Asterisk limit fd usage to 1024
Benny Amorsen
benny+usenet at amorsen.dk
Thu Oct 15 03:49:47 CDT 2009
"Kevin P. Fleming" <kpfleming at digium.com> writes:
> I'd be fine with just switching to poll() for everything.
If all that code has to be touched, perhaps it would be better to switch
to something more efficient?
It would be nice to use something like libevent but that particular
library doesn't seem to support the threading model used by Asterisk.
That's a bit sad actually, as it even comes with an async DNS library.
Having to support both epoll and kqueue by hand would not be very nice,
so perhaps sticking with poll is the only way.
This graph is a bit scary for poll() and select() though:
http://www.monkey.org/~provos/libevent/libevent-benchmark2.jpg
/Benny
More information about the asterisk-dev
mailing list