mattyb149 commented on code in PR #7651:
URL: https://github.com/apache/nifi/pull/7651#discussion_r1307909950


##########
nifi-commons/nifi-socket-utils/src/main/java/org/apache/nifi/io/socket/SocketUtils.java:
##########
@@ -185,4 +187,23 @@ public static void closeQuietly(final ServerSocket 
serverSocket) {
         }
     }
 
+    /**
+     * Returns {@code true} if this exception is due to a TLS problem (either 
directly or because of its cause, if present). Traverses the cause chain 
recursively.
+     *
+     * @param e the exception to evaluate
+     * @return true if the direct or indirect cause of this exception was 
TLS-related
+     */
+    public static boolean isTlsError(Throwable e) {

Review Comment:
   This would make a good generic utility method for getting to the root cause 
of an issue. Could be done as a follow-on Jira though.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to