Skip to content

Overriding NextProtos can interfere with Application-Layer Protocol Negotiation or ALPN #95

Description

@jmacelroy

If a server, such as grpc, is trying to set an app protocol and uses this lib for the socket then it will be overridden by

tlsConfig.NextProtos = []string{"http/1.1"}
.

This was probably unnoticed until go 1.17 when enforcement became strict https://golang.org/doc/go1.17#ALPN

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions