Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crashes on large numbers of connections #843

Merged
merged 1 commit into from
May 6, 2018

Conversation

sodabrew
Copy link
Member

@sodabrew sodabrew commented May 6, 2018

All three fd_set arguments to select must be large enough to modify
according to the length given in the first argument to select. This can
be done by calling rb_fd_resize on each of the fd_set arguments, which
happens to be exactly what rb_fd_select does!

All three fd_set arguments to select must be large enough to modify
according to the length given in the first argument to select. This can
be done by calling rb_fd_resize on each of the fd_set arguments, which
happens to be exactly what rb_fd_select does!
@sodabrew sodabrew added this to the v1.2.7 milestone May 6, 2018
@sodabrew sodabrew changed the title Fix crashes on Max OS X on large numbers of connections Fix crashes on large numbers of connections May 6, 2018
@sodabrew sodabrew merged commit 3440de4 into eventmachine:1.2-stable May 6, 2018
@sodabrew sodabrew deleted the fix-macos-large-select branch May 6, 2018 07:12
sodabrew added a commit that referenced this pull request May 12, 2018
All three fd_set arguments to select must be large enough to modify
according to the length given in the first argument to select. This can
be done by calling rb_fd_resize on each of the fd_set arguments, which
happens to be exactly what rb_fd_select does!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant