cloudflare / cloudflare/cloudflare-blog

Unexpected result from example code in `/2022-02-io_uring-worker-pool`

Open
#47 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
1.2k
Forks
252
PR merge metrics
No merged PRs in 30d

Description

Hello,
thanks for your example code and blog post.

I execute the program `udp-read` with argument `--async --threads 2 --rings 1`
However, I always get `Error: Invalid argument (os error 22)` (even I changed the arguments).

I'm wondering do I missing some details? (I'm not familiar with rust)

Configuration:
rustc version: `1.56.1`
cargo version: `1.56.0`

Contributor guide

Open the contributing guide

Research direction

Start in /2022-02-io_uring-worker-pool and locate the udp-read entry point. Run the reported command with Rust 1.56.1 and Cargo 1.56.0, then compare it with the changed --async, --threads, and --rings arguments; done means identifying why the example returns os error 22 and documenting or correcting the reproducible behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.