[erlang-bugs] Lift limitation to FD_SETSIZE file descriptors on Mac OS X in erl_poll

Anthony Ramine n.oxyde@REDACTED
Sun May 12 17:36:45 CEST 2013


Hello,

I've written a patch that makes erl_poll uses _DARWIN_UNLIMITED_SELECT on Mac OS X. This constant makes select() work with more than FD_SETSIZE file descriptors, all that is needed is to manually manage the fd_set values.

I've run port_SUITE.iter_max_ports test case and got a maximum of 2422 ports instead of 502 before.

Cc'ing Joel Reymont and Max Lapshin because I know they both encountered that problem.

	git fetch https://github.com/nox/otp.git darwin-unlimited-select

	https://github.com/nox/otp/compare/erlang:maint...darwin-unlimited-select
	https://github.com/nox/otp/compare/erlang:maint...darwin-unlimited-select.patch

Regards,

-- 
Anthony Ramine




More information about the erlang-bugs mailing list