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

Use FD_ISSET along with ::select to avoid ::read() from hanging up #268

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

ynyBonfennil
Copy link
Contributor

::select returns how many file descriptors are available for IO operation, but it doesn't tell the availability of the specific file descriptor. This PR adds FD_ISSET along with ::select to check the availability of the specific file descriptor so the next ::read will not hang.

@ynyBonfennil ynyBonfennil added the TESTING Trigger for CI label Sep 10, 2024
@ynyBonfennil ynyBonfennil merged commit 3d1c97a into humble Sep 10, 2024
2 checks passed
@ynyBonfennil ynyBonfennil deleted the fix/tcp-socket-handler-read-blocking branch September 10, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TESTING Trigger for CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant