Lift limitation to FD_SETSIZE file descriptors on Mac OS X in erl_poll

Anthony Ramine <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs,gmane.comp.lang.erlang.patches
Message-ID <[email protected]>
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

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.