bytedance / monoio

Rust async runtime based on io-uring.
Apache License 2.0
3.88k stars 217 forks source link

error when benchmarking using wrk #251

Open ouvaa opened 6 months ago

ouvaa commented 6 months ago

wrk -t 1 -d 10 http://127.0.0.1:8080/

shows error below :

./target/release/examples/hyper-server Running http server on 0.0.0.0:8080 Running http server on 0.0.0.0:8080 Running http server on 0.0.0.0:8080 Running http server on 0.0.0.0:8080 Running http server on 0.0.0.0:8080 Running http server on 0.0.0.0:8080 Error serving connection: hyper::Error(Shutdown, Os { code: 107, kind: NotConnected, message: "Transport endpoint is not connected" }) Error serving connection: hyper::Error(Shutdown, Os { code: 107, kind: NotConnected, message: "Transport endpoint is not connected" }) Error serving connection: hyper::Error(Shutdown, Os { code: 107, kind: NotConnected, message: "Transport endpoint is not connected" }) Error serving connection: hyper::Error(Shutdown, Os { code: 107, kind: NotConnected, message: "Transport endpoint is not connected" }) Error serving connection: hyper::Error(Shutdown, Os { code: 107, kind: NotConnected, message: "Transport endpoint is not connected" }) Error serving connection: hyper::Error(Shutdown, Os { code: 107, kind: NotConnected, message: "Transport endpoint is not connected" })

hxzhao527 commented 6 months ago
  1. This is not a problem with monoio. It just works the same with examples in hyper.
  2. It seems wrk not close connection correctly. image
SteveLauC commented 3 months ago

Filed an issue in the upstream hyper repo: https://github.com/hyperium/hyper/issues/3669