Skip to content

Use selectors.DefaultSelector instead of select.select #604

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

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

robsdedude
Copy link
Member

select.select, while being available on many platforms has the drawback of not
being very modern. On some Linux systems, for instance, it is limited to 1024
open file descriptors. Python offers a nice wrapper to choose the best way for
each OS to poll sockets named selectors.DefaultSelector.

@robsdedude robsdedude changed the title Use selectors.DefaultSelector over select.select Use selectors.DefaultSelector instead of select.select Oct 19, 2021
select.select, while being available on many platforms has the drawback of not
being very modern. On some Linux systems, for instance, it is limited to 1024
open file descriptors. Python offers a nice wrapper to choose the best way for
each OS to poll sockets named selectors.DefaultSelector.
@robsdedude robsdedude force-pushed the use-os-default-selector branch from e6d1894 to 08ec53f Compare October 20, 2021 10:09
@robsdedude robsdedude merged commit c409adc into neo4j:4.4 Oct 20, 2021
robsdedude added a commit that referenced this pull request Oct 20, 2021
select.select, while being available on many platforms has the drawback of not
being very modern. On some Linux systems, for instance, it is limited to 1024
open file descriptors. Python offers a nice wrapper to choose the best way for
each OS to poll sockets named selectors.DefaultSelector.

Backport of #604
@robsdedude robsdedude deleted the use-os-default-selector branch October 20, 2021 11:16
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