cloudflare / cloudflare/cloudflare-blog
Is there supposed to be a loop in 2022-02-io_uring-worker-pool?
- Dominant language
- C
- Stars
- 1.2k
- Forks
- 252
- PR merge metrics
- No merged PRs in 30d
Description
When trying to run the program in udp-read.rs, the process hangs indefinitely because there's a loop at the end. I am not sure if that was intentional.
If you remove the loop, it just executes all of the threads that were initiated and correctly executes the io_uring read as intended. I can submit a PR with it removed if that's the outcome that's intended. Just lmk!
Also - the blogpost for this article (io_uring worker pool) seems to be down on the cloudflare-blog website. I'd like to read it, so please let me know if it's possible it can be re-uploaded.
Contributor guide
Research direction
Start with udp-read.rs in the 2022-02-io_uring-worker-pool example and inspect the loop at the end, then run the program to compare its behavior with and without that loop. Done means confirming the intended termination behavior and documenting or correcting the example accordingly; the request to restore the unavailable blog post is a separate documentation concern.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100