Closed zier-one closed 2 months ago
I've located the bug is caused by this pr https://github.com/hyperium/tonic/commit/c3be20c86e1a6dfa3523b2d77e8c503d0f5b2ce3
And I try to fix it in https://github.com/hyperium/tonic/pull/1885#discussion_r1735674401
fixed in #1885
Bug Report
Version
v0.12.2 and master branch
Platform
Darwin XXX 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64
Description
First, let's try to run the
server.rs
andclient.rs
in examples/src/tls. The server says:And the client says:
Everything is OK for now.
Then, let's change one line in
client.rs
:https://github.com/hyperium/tonic/blob/82a856fea851cc20641572d61d51408ab37693b6/examples/src/tls/client.rs#L14-L17
modify
.domain_name("example.com");
to.domain_name("wrong.com");
in L16And then, run the
server.rs
andclient.rs
again.We can see the client says:
It's OK, but the server process EXIT WITH NO ERROR. It confuses me.