You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2018/01/24 16:54:03 UTC
[incubator-pulsar] branch master updated: Include BoringSSL native
implementation for faster TLS (#1094)
This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new a6e02bf Include BoringSSL native implementation for faster TLS (#1094)
a6e02bf is described below
commit a6e02bf7444992981a827d2eab550674ba014ed9
Author: Matteo Merli <mm...@apache.org>
AuthorDate: Wed Jan 24 08:53:59 2018 -0800
Include BoringSSL native implementation for faster TLS (#1094)
---
pom.xml | 2 +-
.../main/java/org/apache/pulsar/broker/service/BrokerService.java | 4 +++-
.../java/org/apache/pulsar/broker/service/BrokerServiceTest.java | 2 +-
pulsar-client-shaded/pom.xml | 2 ++
pulsar-common/pom.xml | 6 ++++++
5 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/pom.xml b/pom.xml
index 301c70b..11797a4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -108,7 +108,7 @@ flexible messaging model and an intuitive client API.</description>
<bookkeeper.version>4.3.1.85-yahoo</bookkeeper.version>
<zookeeper.version>3.4.10</zookeeper.version>
- <netty.version>4.1.12.Final</netty.version>
+ <netty.version>4.1.20.Final</netty.version>
<storm.version>1.0.5</storm.version>
<jetty.version>9.3.11.v20160721</jetty.version>
<athenz.version>1.7.17</athenz.version>
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
index e885333..bf7bdbd 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
@@ -123,6 +123,7 @@ import io.netty.buffer.PooledByteBufAllocator;
import io.netty.channel.AdaptiveRecvByteBufAllocator;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
+import io.netty.handler.ssl.SslContext;
import io.netty.util.concurrent.DefaultThreadFactory;
public class BrokerService implements Closeable, ZooKeeperCacheListener<Policies> {
@@ -289,7 +290,8 @@ public class BrokerService implements Closeable, ZooKeeperCacheListener<Policies
ServerBootstrap tlsBootstrap = bootstrap.clone();
tlsBootstrap.childHandler(new PulsarChannelInitializer(this, serviceConfig, true));
tlsBootstrap.bind(new InetSocketAddress(pulsar.getBindAddress(), tlsPort)).sync();
- log.info("Started Pulsar Broker TLS service on port {}", tlsPort);
+ log.info("Started Pulsar Broker TLS service on port {} - TLS provider: {}", tlsPort,
+ SslContext.defaultServerProvider());
}
// start other housekeeping functions
diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/BrokerServiceTest.java b/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/BrokerServiceTest.java
index cddf478..1c2b9b6 100644
--- a/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/BrokerServiceTest.java
+++ b/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/BrokerServiceTest.java
@@ -510,7 +510,7 @@ public class BrokerServiceTest extends BrokerTestBase {
consumer.close();
fail("should fail");
} catch (Exception e) {
- assertTrue(e.getMessage().contains("General SSLEngine problem"));
+ assertTrue(e.getMessage().contains("General OpenSslEngine problem"));
} finally {
pulsarClient.close();
}
diff --git a/pulsar-client-shaded/pom.xml b/pulsar-client-shaded/pom.xml
index ec8d96d..c3239cc 100644
--- a/pulsar-client-shaded/pom.xml
+++ b/pulsar-client-shaded/pom.xml
@@ -75,6 +75,8 @@
<include>com.fasterxml.jackson.core</include>
<include>io.netty:netty</include>
<include>io.netty:netty-all</include>
+ <include>io.netty:netty-tcnative-boringssl-static</include>
+
<include>org.apache.pulsar:pulsar-common</include>
<include>org.apache.pulsar:pulsar-checksum</include>
<include>net.jpountz.lz4:lz4</include>
diff --git a/pulsar-common/pom.xml b/pulsar-common/pom.xml
index 3e7bd0a..ccfabc1 100644
--- a/pulsar-common/pom.xml
+++ b/pulsar-common/pom.xml
@@ -70,5 +70,11 @@
<artifactId>pulsar-checksum</artifactId>
<version>${project.version}</version>
</dependency>
+
+ <dependency>
+ <groupId>io.netty</groupId>
+ <artifactId>netty-tcnative-boringssl-static</artifactId>
+ <version>2.0.7.Final</version>
+ </dependency>
</dependencies>
</project>
--
To stop receiving notification emails like this one, please contact
mmerli@apache.org.