[asterisk-dev] select() and friends in Asterisk limit fd usage to 1024

Kevin P. Fleming kpfleming at digium.com
Wed Oct 14 16:29:52 CDT 2009


Moises Silva wrote:

> To fix this problem I see 2 possibilities. Either we get rid completely
> of select when poll is available (which is supposed to be a bit slower
> than select) or we to add a new compilation flag to allow users to
> decide, something like LOTS_OF_FDS, in such cases Asterisk would simply
> not use select and use poll in ast_select, and any place where select()
> is hard coded should be moved to use ast_select or some other wrapper.

I'd be fine with just switching to poll() for everything.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpfleming at digium.com
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list