salvo-rs / salvo

A powerful web framework built with a simplified design.
https://salvo.rs
Apache License 2.0
2.92k stars 172 forks source link

HTTP/3 realization doesn't work #814

Closed markcda closed 2 weeks ago

markcda commented 2 weeks ago

Describe the bug Cannot connect to QuinnListener from curl with an error message like this:

ERROR salvo_core::server: accept connection failed error=Custom { kind: Other, error: "the cryptographic handshake failed: error 120: peer doesn't support any known protocol" }

To Reproduce Steps to reproduce the behavior:

  1. Clone the repository
  2. Cd into examples/
  3. Execute cargo run --bin example-hello-h3
  4. Run in another console curl --http3-only --tlsv1.3 --cacert certs/cert.pem https://127.0.0.1:5800 and see curl: (7) error:8000006F:system library::Connection refused
  5. In example-hello-h3 console also see an error

Expected behavior After 4th step see Hello World

Desktop (please complete the following information):

markcda commented 2 weeks ago

Note that this error was found in 0.68; in 0.66 QuinnListener works as expected!