Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Description: Disable the NPN/ALPN support since it relies on jetty npn-api and alpn-api which aren't available in Debian
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/pom.xml
+++ b/pom.xml
@@ -882,6 +882,7 @@
</configuration>
</plugin>
<!-- Download the npn-boot.jar in advance to add it to the boot classpath. -->
+<!--
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
@@ -899,6 +900,7 @@
</execution>
</executions>
</plugin>
+-->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
--- a/handler/pom.xml
+++ b/handler/pom.xml
@@ -87,5 +87,21 @@
<artifactId>mockito-core</artifactId>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>**/*Alpn*.java</exclude>
+ <exclude>**/*Npn*.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
--- a/handler/src/main/java/io/netty/handler/ssl/JdkSslContext.java
+++ b/handler/src/main/java/io/netty/handler/ssl/JdkSslContext.java
@@ -383,6 +383,7 @@
switch(config.protocol()) {
case NONE:
return JdkDefaultApplicationProtocolNegotiator.INSTANCE;
+/*
case ALPN:
if (isServer) {
switch(config.selectorFailureBehavior()) {
@@ -427,6 +428,7 @@
.append(config.selectorFailureBehavior()).append(" failure behavior").toString());
}
}
+*/
default:
throw new UnsupportedOperationException(new StringBuilder("JDK provider does not support ")
.append(config.protocol()).append(" protocol").toString());