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

kazoo patch to workaround select's file descriptor limitation #171

Closed
pattyshack opened this issue Feb 27, 2014 · 1 comment · Fixed by #448
Closed

kazoo patch to workaround select's file descriptor limitation #171

pattyshack opened this issue Feb 27, 2014 · 1 comment · Fixed by #448

Comments

@pattyshack
Copy link

I wrote a patch to deal with the fact that select cannot handle file descriptors larger than 1024 (This problem is common to most posix select implementations). I would like to upstream this change.

This patch is only applicable to posix based systems (Windows does not support epoll).

patch: https://www.dropbox.com/s/9dae2bfk1jfilwr/kazoo-1.3.1.patch

original thread: https://groups.google.com/forum/#!topic/python-zk/kzX_8BBBpCM

@bbangert
Copy link
Member

bbangert commented Jun 1, 2017

If this can be done as a PR and merged cleanly I'd be happy to include it. Closing this otherwise, feel free to re-open along with a PR using the latest master if you'd like to address it.

@bbangert bbangert closed this as completed Jun 1, 2017
packysauce added a commit to packysauce/kazoo that referenced this issue Jun 2, 2017
This would use select() at all times, except on systems that have epoll,
it would use epoll if we *know* select is going to fail (ie, fd > 1023)

closes python-zk#266
closes python-zk#171
packysauce added a commit to packysauce/kazoo that referenced this issue Jun 2, 2017
This would use select() at all times, except on systems that have epoll,
it would use epoll if we *know* select is going to fail (ie, fd > 1023)

closes python-zk#266
closes python-zk#171
packysauce added a commit to packysauce/kazoo that referenced this issue Jun 3, 2017
This would use select() at all times, except on systems that have epoll,
it would use epoll if we *know* select is going to fail (ie, fd > 1023)

closes python-zk#266
closes python-zk#171
packysauce added a commit to packysauce/kazoo that referenced this issue Jun 4, 2017
This would use select() at all times, except on systems that have epoll,
it would use epoll if we *know* select is going to fail (ie, fd > 1023)

closes python-zk#266
closes python-zk#171
packysauce added a commit to packysauce/kazoo that referenced this issue Jun 4, 2017
When epoll is available, and the highest fd in use is > 1023, route through epoll.
Otherwise, use the existing select() behavior so by and large nothing changes.

Closes python-zk#266, python-zk#171
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants