HTTP2 support

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

HTTP2 support

Jenkins user-4
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

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/04d96810-47f0-47a8-b423-40e8cdf6817f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: HTTP2 support

Olivier Lamy-2
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



On Tuesday, 16 October 2018 00:45:01 UTC+10, Jenkins user wrote:
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
<a href="https://wiki.jenkins.io/display/JENKINS/Starting+and+Accessing+Jenkins" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins.io%2Fdisplay%2FJENKINS%2FStarting%2Band%2BAccessing%2BJenkins\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEHxay0-q2g5o3h6GQdSMiqWHM30A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins.io%2Fdisplay%2FJENKINS%2FStarting%2Band%2BAccessing%2BJenkins\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEHxay0-q2g5o3h6GQdSMiqWHM30A&#39;;return true;">https://wiki.jenkins.io/display/JENKINS/Starting+and+Accessing+Jenkins
and <a href="https://github.com/jenkinsci/winstone/blob/master/README.md#http2-support" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fwinstone%2Fblob%2Fmaster%2FREADME.md%23http2-support\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFgKJyl0MaIIpddm8LzUvuwEFPqow&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fwinstone%2Fblob%2Fmaster%2FREADME.md%23http2-support\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFgKJyl0MaIIpddm8LzUvuwEFPqow&#39;;return true;">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 <a href="http://org.eclipse.jetty.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.eclipse.jetty.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGdzTJtbmwPQqVTPKyBST83d_KQSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.eclipse.jetty.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGdzTJtbmwPQqVTPKyBST83d_KQSQ&#39;;return true;">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

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f305fd9e-83b8-4d97-8554-f454907dac4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.