spacejam / rio

pure rust io_uring library, built on libc, thread & async friendly, misuse resistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extend examples/async_echo.rs to support concurrent requests serving for benchmarking

CarterLi opened this issue · comments

I know little about Rust, but it seems that

if let Err(_) = proxy(&ring, &stream, &stream).await {

blocks future connections before the current client is disconnected, which generally forbids concurrent requests serving. Only one connection is allowed at the same time.

Related project: https://github.com/haraldh/rust_echo_bench

Any thoughts?