Skip to content

Replaced select.select() with select.epoll() in SocketcanBus#2056

Open
bhicks-stackav wants to merge 2 commits into
hardbyte:mainfrom
bhicks-stackav:socketcan-epoll
Open

Replaced select.select() with select.epoll() in SocketcanBus#2056
bhicks-stackav wants to merge 2 commits into
hardbyte:mainfrom
bhicks-stackav:socketcan-epoll

Conversation

@bhicks-stackav

Copy link
Copy Markdown

Summary of Changes

  • Replace usage of select.select() with select.epoll() in SocketcanBus to avoid a ValueError being raised when a high number of files (>1024) are open

Related Issues / Pull Requests

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactoring
  • Other (please describe):

Checklist

  • I have followed the contribution guide.
  • I have added or updated tests as appropriate.
  • I have added or updated documentation as appropriate.
  • I have added a news fragment for towncrier.
  • All checks and tests pass (tox).

Additional Notes

@zariiii9003

Copy link
Copy Markdown
Collaborator

Your solution is better than #2057, if you can make the tests pass i will merge this one.

@mergify

mergify Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@bhicks-stackav

Copy link
Copy Markdown
Author

@zariiii9003 sorry about that. I believe I've addressed the issue. Please take another look.

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.

SocketcanBus does not support socket file descriptors over 1023

2 participants