fix bug of print handshake fail
@@ -90,6 +90,12 @@ public class ChannelConnections {
private long connectTimeout = (long) 10000;
private long sslHandShakeTimeout = (long) 10000;
+ private static final String helpInfo =
+ "The reasons for failure may be: "
+ + "1. the configured certificate is not the same set of certificates as the node's certificate; "
+ + "2. the configured certificate is not issued by the same authority as the node's certificate. "
+ + "Please refer to https://fisco-bcos-documentation.readthedocs.io/zh_CN/latest/docs/sdk/java_sdk.html#id24";
+
public Map<String, ChannelHandlerContext> networkConnections =
new ConcurrentHashMap<String, ChannelHandlerContext>();
private int groupId;
@@ -453,11 +459,6 @@ public class ChannelConnections {
tuple3.getValue1(),
tuple3.getValue2());
errorMessageList.add(sslHandshakeFailedMessage);
- String helpInfo =
- "The reasons for failure may be: "
- + "1. the configured certificate is not the same set of certificates as the node's certificate; "
- + "2. the configured certificate is not issued by the same authority as the node's certificate. "
- + "Please refer to https://fisco-bcos-documentation.readthedocs.io/zh_CN/latest/docs/sdk/java_sdk.html#id24";
errorMessageList.add(helpInfo);
continue;
}
@@ -477,6 +478,7 @@ public class ChannelConnections {
+ tuple3.getValue2();
errorMessageList.add(sslHandshakeFailedMessage);
+ errorMessageList.add(helpInfo);
}
}
}
