HTTP2 support

204 views
Skip to first unread message

Jenkins user

unread,
Oct 15, 2018, 10:45:01 AM10/15/18
to Jenkins Users
Hello,

I am trying to enable HTTP2 in a Windows machine with Jenkins 2.138.2
(Comes with JRE 1.8.144). I followed the instructions from
https://wiki.jenkins.io/display/JENKINS/Starting+and+Accessing+Jenkins
and https://github.com/jenkinsci/winstone/blob/master/README.md#http2-support
and added
--extraLibFolder=D:/Jenkins/ex
tra
-Xbootclasspath/p:D:/Jenkins/extra/alpn-boot-8.1.11.v20170118.jar
--http2Port=9090

to the arguments element in Jenkins.xml and restarted the service.

When I try to access Jenkins on that port, I get this in jenkins.err.log

Oct 15, 2018 10:21:53 AM org.eclipse.jetty.io.ManagedSelector$Accept failed
WARNING: java.lang.IllegalStateException: Connection rejected: No ALPN
Processor for sun.security.ssl.SSLEngineImpl from
[org.eclipse.jetty.alpn.conscrypt.server.ConscryptServerALPNProcessor@13978a3]

I searched the web and tried different things, but still no luck.

Am I doing something wrong?

Thanks

GraphListenerTest

unread,
Nov 28, 2018, 6:36:44 PM11/28/18
to Jenkins Users
Hi
Sorry for the very late reply.....
I will update the documentation especially it's a bit wrong now with last jetty upgrade.

With java8:
java8
java -Xbootclasspath/p:alpn-boot-8.1.11.v20170118.jar -jar jenkins.war --http2Port=9090 --extraLibFolder=`pwd`/lib --httpPort=-1
with lib directory containing jetty-alpn-openjdk8-server-9.4.12.v20180830.jar
Regarding alpn-boot-8.1.11.v20170118.jar version please consider looking at corresponding versions here https://www.eclipse.org/jetty/documentation/9.4.x/alpn-chapter.html#alpn-versions

java9+
java -jar jenkins.war --http2Port=9090 --extraLibFolder=`pwd`/lib --httpPort=-1 --enable-future-java
with lib directory containing jetty-alpn-java-server-9.4.12.v20180830.jar

HTH
Olivier
Reply all
Reply to author
Forward
0 new messages