We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c8c8b3 commit 5ce6267Copy full SHA for 5ce6267
netty/src/main/java/io/grpc/netty/NettyClientHandler.java
@@ -857,9 +857,11 @@ public void operationComplete(ChannelFuture future) throws Exception {
857
}
858
Throwable cause = future.cause();
859
Status status = lifecycleManager.getShutdownStatus();
860
- if (cause instanceof ClosedChannelException && status == null) {
+ if (cause instanceof ClosedChannelException) {
861
+ if (status == null) {
862
status = Status.UNKNOWN.withDescription("Ping failed but for unknown reason.")
- .withCause(future.cause());
863
+ .withCause(future.cause());
864
+ }
865
} else {
866
status = Utils.statusFromThrowable(cause);
867
0 commit comments