Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fixes 559 -- replace select.select() with select.poll() on posix #560

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wjszlachta-man
Copy link

@wjszlachta-man wjszlachta-man commented Apr 30, 2025

On glibc based Linux systems select() can monitor only file descriptor numbers that are less than FD_SETSIZE (1024).

This is an unreasonably low limit for many modern applications.

See #559 for example error.

This PR replaces select.select() with select.poll() when running on POSIX os.

On glibc based Linux systems select() can monitor only file descriptor numbers
that are less than FD_SETSIZE (1024).

This is an unreasonably low limit for many modern applications.
@jonahgraham
Copy link
Contributor

A quick review of this looks reasonable to me - and +1 in general for moving from select to poll.

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.

2 participants