Skip to content

Netty HTTP/2 negotiation fails silently if ALPN/NPN in classpath, but jetty_alpn not in bootclasspath #30

Closed

Description

@ejona86

If you properly have ALPN/NPN in your classpath, but lack jetty_alpn in your bootclasspath, then we just hang after sending a SETTINGS frame. ALPN never happens, but "unsupported" isn't even called because that is normally called by jetty_alpn.

This makes it hard for users to determine what is wrong with their setup.

The only idea I have for a fix is to set a boolean when our ClientProvider is called and detect if it isn't set.

Activity

  1. codefromthecrypt commented on Jan 23, 2015

    @codefromthecrypt

    A couple ways we could tackle this.

    sun.security.ssl.(ALPNExtension|NextProtoNegoExtension).getClassLoader == null - assumes bootstrap classloader is implied by null, so might be fragile. Also this requires us to load the class.

    Another way could be to look into the netty side to determine if SslHandshakeCompletionEvent (or similar) could be augmented with metadata such as the negotiated ALPN protocol string.

  2. ejona86 commented on May 29, 2015

    @ejona86
    MemberAuthor

    This was resolved by #180

  3. locked as resolved and limited conversation to collaborators on Sep 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions