[ 
https://issues.apache.org/jira/browse/FLINK-9816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16544035#comment-16544035
 ] 

ASF GitHub Bot commented on FLINK-9816:
---------------------------------------

Github user yanghua commented on a diff in the pull request:

    https://github.com/apache/flink/pull/6328#discussion_r202506820
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/net/SSLUtils.java ---
    @@ -163,80 +163,157 @@ public static void 
setSSLVerifyHostname(Configuration sslConfig, SSLParameters s
        }
     
        /**
    -    * Creates the SSL Context for the client if SSL is configured.
    +    * SSL engine provider.
    +    */
    +   public enum SSLProvider {
    +           JDK,
    +           /**
    +            * OpenSSL with fallback to JDK if not available.
    +            */
    +           OPENSSL;
    +
    +           public static SSLProvider fromString(String value) {
    +                   Preconditions.checkNotNull(value);
    +                   if (value.equalsIgnoreCase("OPENSSL")) {
    +                           return OPENSSL;
    +                   } else if (value.equalsIgnoreCase("JDK")) {
    +                           return JDK;
    +                   } else {
    +                           throw new IllegalArgumentException("Unknown SSL 
provider: " + value);
    +                   }
    +           }
    +   }
    +
    +   /**
    +    * Instances needed to set up an SSL client connection.
    +    */
    +   public static class SSLClientTools {
    +           public final SSLProvider preferredSslProvider;
    +           public final String sslProtocolVersion;
    +           public final TrustManagerFactory trustManagerFactory;
    --- End diff --
    
    mark these fields as `private` as provide `getter/setter` looks better to me


> Support Netty SslEngine based on openSSL
> ----------------------------------------
>
>                 Key: FLINK-9816
>                 URL: https://issues.apache.org/jira/browse/FLINK-9816
>             Project: Flink
>          Issue Type: Improvement
>          Components: Network
>            Reporter: Nico Kruber
>            Assignee: Nico Kruber
>            Priority: Major
>              Labels: pull-request-available
>
> Since a while now, Netty does not only support the JDK's {{SSLEngine}} but 
> also implements one based on openSSL which, according to 
> https://netty.io/wiki/requirements-for-4.x.html#wiki-h4-4 is significantly 
> faster. We should add support for using that engine instead.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to