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

signal event key is possible to overlap with socket poll ids #153

Merged
merged 3 commits into from
Dec 1, 2023

Conversation

keepsimple1
Copy link
Owner

In a recent test, I noticed that the signal event key (hardcoded to 7) is possible to overlap with socket poll ids, and then causes the socket cannot be polled as we process signal event key first.

This patch is to change the signal event key to use usize::MAX - 1 to avoid such overlapping.

@keepsimple1 keepsimple1 merged commit 6c5e189 into main Dec 1, 2023
3 checks passed
@keepsimple1 keepsimple1 deleted the ev-key branch December 1, 2023 05:09
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