cloudflare/cloudflare-blog

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

eecheng87 opened this issue · 1 comments

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

I'm having a hard time reproducing the bug. Are your commands as follows?

[Insert cloning process of choice]
cargo build
cargo run -- --async --threads 2 --rings 1

Also, are you saying with these specific arguments you get this error or you get the error no matter the arguments?