Skip to content

timeout and fdSet need to be set on each loop iteration as select() can modify them on linux #64

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 2 commits into from
Jun 19, 2025

Conversation

ericbalsa
Copy link
Contributor

select() will modify the timeout (tv) and fdSet after each call (on linux) and these can drift over time or otherwise get into an unexpected state. They need to be setup before each call to select() as a linux-only work-around. This does that.

Copy link
Owner

@vladimirvivien vladimirvivien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this enhancement.

@vladimirvivien vladimirvivien merged commit c2de289 into vladimirvivien:main Jun 19, 2025
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