cloudflare / quiche

🥧 Savoury implementation of the QUIC transport protocol and HTTP/3
https://docs.quic.tech/quiche/
BSD 2-Clause "Simplified" License
9.4k stars 709 forks source link

example client does not mention peer verification blocking connection establishment #30

Open muelli opened 5 years ago

muelli commented 5 years ago

I have tried to get my feet wet with QUIC and quiche and it took me some time to find out why the connection wouldn't be established. The enabled peer verification prevented a successful connection and I would have appreciated if the client output would have mentioned something that indicated such a problem.

ghedo commented 5 years ago

It does log the error if you set the log level to trace (setting the environment variable as RUST_LOG=trace), but I don't think it's a particularly nice interface to error reporting.

On the other hand I don't think we want to expose BoringSSL errors via the public quiche API, so I'm not sure what the best way to improve this would be.

piano-man commented 4 years ago

@muelli , how did you get the client to finally connect ?

muelli commented 4 years ago

I guess I used the --no-verify flag for the example client.

piano-man commented 4 years ago

Oh, that doesn't seem to work anymore though

junhochoi commented 4 years ago

Since we simplified examples/ directory, it doesn't contain options any more. Please see https://github.com/cloudflare/quiche#command-line-apps for command line app usage.