简体   繁体   中英

Jetty: is it possible to use SPDY/3.1?

I run Jetty server using JDK 1.8 and ALPN as described at: How to run Jetty with SPDY using ALPN?

There is line:

ALPNServerConnectionFactory alpn = new ALPNServerConnectionFactory("spdy/3", "http/1.1");

and:

HTTPSPDYServerConnectionFactory spdy = new HTTPSPDYServerConnectionFactory(SPDY.V3, httpConfig, push);

But Chrome 40 uses only "spdy/3.1" and "http/1.1". With ALPN debug enabled it looks like:

[S] ALPN protocols [spdy/3.1, http/1.1] received from client for 1987cc45[SSLEngine[hostname=169.0.1.126 port=59439] SSL_NULL_WITH_NULL_NULL]

Negotiation ends with http/1.1 . So I changed that line into:

ALPNServerConnectionFactory alpn = new ALPNServerConnectionFactory("spdy/3.1", "http/1.1");

This gives that spdy/3.1 is selected:

[S] ALPN protocol 'spdy/3.1' selected for 1987cc45[SSLEngine[hostname=169.0.1.126 port=59439] SSL_NULL_WITH_NULL_NULL]

But Chrome does not receive response. I have not found any exception on the server side but it seems that Jetty cannot work with SPDY/3.1.

Can Jetty work with SPDY/3.1? How to set it?

I use JDK 1.8.0_31 and in bootstap alpn-boot-8.1.3.v20150130.jar .

Jetty does not support SPDY/3.1 , only up to SPDY/3 .

In fact, Jetty will never support SPDY/3.1 .

SPDY and NPN were just removed from the code tree in the upcoming Jetty 9.3.0 release.

http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/commit/?id=2162455b72d5a474bba47d5daf5543d46c2688be

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM