InetSocketAddress itself can resolve the hostname. if it fails you get the UnresolvedAddressException, if you pass the name you get the error from name resolver.
I do agree that they both should have the same status Unavailable since it is a standard exception. can you file an issue on github? On Tue, Apr 21, 2020 at 7:37 AM Elhanan Maayan <[email protected]> wrote: > hi.. > when using > > NettyChannelBuilder.forAddress(new > InetSocketAddress(address,443)).sslContext(sslContext); > > > with an a host that doesn't exist i get back a status error code if unknown > with UnresolvedAddressException > > > however > > when trying > > final NettyChannelBuilder nettyChannelBuilder = > NettyChannelBuilder.forAddress(address,443).sslContext(sslContext); > > > with the same host i'm getting UnknownHostExcetpion with Status *Unavailable * > > > i would have expected to get Unavailable for the UnknownAddressException too > > > -- > You received this message because you are subscribed to the Google Groups " > grpc.io" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/grpc-io/ea91958c-02fb-42e2-a1aa-f774a2940086%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/ea91958c-02fb-42e2-a1aa-f774a2940086%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CABu9Gjqre_MXzDP5B%3D4Q8mwa3h_%2BH9PWTdvukM99DRhO3Vy_Dw%40mail.gmail.com.
