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

Poll for readiness before reading/writing sockets #61

Closed
wants to merge 2 commits into from

Conversation

armanbilge
Copy link
Owner

I think this closes #56.

The idea here is to poll the socket for readiness before doing the actual read/write. To avoid having to make two separate submissions, this is achieved via SQE "linking": the polling SQE links to the read/write SQE as its "next step".

Manually testing against the reproducer in #56 I can no longer see the iou-wrk threads. So that seems good.

I don't really understand why this fixed things. I also need to figure out if I want to do this for accept and connect.

@armanbilge
Copy link
Owner Author

According to axboe/liburing#842 (comment) we should not be needing to poll first 🤔

@armanbilge armanbilge closed this Jun 9, 2023
@armanbilge armanbilge deleted the pr/polling branch July 12, 2023 17:05
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.

Reading/writing on sockets starts several iou-wrk "workers"
1 participant