Skip to content

[feature] Check for and report bad protocol in TLSClientConfig.NextProtos #760

@ghost

Description

See issue #601.

When dialing a TLS connection, check for and return an error when Dialer.TLSClientConfig.NextProtos contains "h2". The error text should mention that this can happen when sharing a tls.Config with net/http Transport.

The problem in #601 is difficult for application developers to debug. An explicit error should help.

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