grpc-rust icon indicating copy to clipboard operation
grpc-rust copied to clipboard

TLS client panic!

Open mcjing opened this issue 2 years ago • 0 comments

TLS client paniced, i had try the greeter demo, the client paniced with a unimpl error.

https://github.com/stepancheg/grpc-rust/blob/master/grpc/src/client/mod.rs:104

let (host, port) = match self.client_type {
    ClientBuilderType::Tcp { host, port } => {
        match self.tls {
            Tls::Explict(_) => {
                todo!()
            }
            Tls::Implicit(x) => {
                builder.set_tls_dyn(host, x)?;
            }
            Tls::None => {}
        }
        builder.set_addr((host, port))?;
        (host, Some(port))
    }
    ClientBuilderType::Unix { socket } => {
        builder.set_unix_addr(socket)?;
        (socket, None)
    }
};

mcjing avatar Apr 22 '22 04:04 mcjing