Skip to content

Check for wakeup socket errors on read and close and reinit to reset #2482

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 3 commits into from
Feb 16, 2025

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Feb 15, 2025

Attempt to be a bit more defensive with wakeup socketpair. Check for socket error and rebuild socketpair if necessary. Use a _waking flag to avoid writing more bytes to the socketpair when it's not needed. Raise errors on failed write attempts.

@dpkp dpkp force-pushed the dpkp/wakeup-socketpair-recycle branch from 80f015a to f460b26 Compare February 15, 2025 18:35
@dpkp dpkp merged commit 226810c into master Feb 16, 2025
14 checks passed
@dpkp dpkp deleted the dpkp/wakeup-socketpair-recycle branch February 16, 2025 00:12
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