Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] server with jetty 9.4.2 no longer accessible from iPhone

thanks a lot Simone.

If I simply remove the line 

jetty.alpn.protocols=h2-17,h2-16,h2-15,h2-14,h2,http/1.1

from my start.ini then everything works well again.

I am no longer sure why I had that line there in the first place.


thanks,
Michele





On 6 March 2017 at 12:08, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:
Hi,

On Mon, Mar 6, 2017 at 9:44 AM, Michele Rossi <michele.rossi@xxxxxxxxx> wrote:
> hi,
>
> this seems to be caused by HTTP2:
>
> 09:42:54.256|INFO
> |gotiatingServerConnection||ALPNServerConnection@4d98f14<-DecryptedEndPoint@1bb2cfdd{/5.170.107.125:3791<->/10.100.216.60:9443,OPEN,fill=-,flush=-,to=19/30000}->ALPNServerConnection@4d98f14->SocketChannelEndPoint@3e5d77ff{/5.170.107.125:3791<->/10.100.216.60:9443,OPEN,fill=-,flush=-,to=0/30000}{io=0/0,kio=0,kro=1}->SslConnection@2b58cd0d{NEED_UNWRAP,eio=-1/-1,di=-1}=>ALPNServerConnection@4d98f14
> application selected protocol 'h2-16', but no correspondent
> org.eclipse.jetty.server.ConnectionFactory has been configured
>
> On my start.ini I have this:
>
> jetty.alpn.protocols=h2-17,h2-16,h2-15,h2-14,h2,http/1.1
>
> Any ideas?

In 9.4.x we switched to only providing "h2" because most browsers have
picked it up (HTTP/2 is now 2 years old) and draft versions are not
used (much) anymore.

Apparently, iPhone does not keep the pace with others.

What you can do is to specify in jetty-http2.xml the second parameter
to HTTP2ServerConnectionFactory, and reintroduce support for draft
versions.

Right now it is:

<New class="org.eclipse.jetty.http2.server.HTTP2ServerConnectionFactory">
  <Arg name="config"><Ref refid="sslHttpConfig"/></Arg>
  ...

You want it to be:

<New class="org.eclipse.jetty.http2.server.HTTP2ServerConnectionFactory">
  <Arg name="config"><Ref refid="sslHttpConfig"/></Arg>
  <Arg>
    <Array type="String">
      <Item>h2</Item>
      <Item>h2-16</Item>
    </Array>
  </Arg>
  ...


--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev


Back to the top