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

Close fd with blocking syscall if ring is full #140

Merged
merged 2 commits into from
Jul 27, 2024
Merged

Close fd with blocking syscall if ring is full #140

merged 2 commits into from
Jul 27, 2024

Conversation

Thomasdezeeuw
Copy link
Owner

See the commits.

If the submission queue is full when we want to close an AsyncFd, we now
fallback to closing the fd using a blocking close(2) call.
After about 4.2 billion submission this will overflow, make sure it
wraps around instead.

Note that due to the masking done on the tail below this will keep
working after wrapping around back to zero.
@Thomasdezeeuw Thomasdezeeuw merged commit 39289c2 into main Jul 27, 2024
6 checks passed
@Thomasdezeeuw Thomasdezeeuw deleted the stuff branch July 27, 2024 13:36
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