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

Set IOSQE_ASYNC for some operations #123

Merged
merged 4 commits into from
Apr 27, 2024
Merged

Set IOSQE_ASYNC for some operations #123

merged 4 commits into from
Apr 27, 2024

Conversation

Thomasdezeeuw
Copy link
Owner

For operations which we don't expect to complete the first time the
submission event is processed we let the kernel know not to attempt do
non-blocking operation first, but instead do it in an async manner from
the start.

We do this for:

  • such as receiving process signal,
  • accepting connections, and
  • polling.

For operations which we don't expect to complete the first time the
submission event is processed we let the kernel know not to attempt do
non-blocking operation first, but instead do it in an async manner from
the start.

We do this for:
 * such as receiving process signal,
 * accepting connections, and
 * polling.
The entire crate is asynchronous, so no point in this duplication.
Sometime the accept operation was started, which means we get 1,
other time the operation hasn't start yet, which means we get 0.
@Thomasdezeeuw Thomasdezeeuw merged commit b4183dd into main Apr 27, 2024
6 checks passed
@Thomasdezeeuw Thomasdezeeuw deleted the set-async branch April 27, 2024 13:34
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