Skip to content

Add ALPN (Application-Layer Protocol Negotiation) support for TLS 1.3#27

Merged
ianic merged 2 commits into
ianic:mainfrom
allain:alpn
Mar 20, 2026
Merged

Add ALPN (Application-Layer Protocol Negotiation) support for TLS 1.3#27
ianic merged 2 commits into
ianic:mainfrom
allain:alpn

Conversation

@allain

@allain allain commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Implement RFC 7301 ALPN extension for both client and server handshakes,
enabling protocol negotiation (e.g., h2, http/1.1) during the TLS
handshake. The server uses server-preference ordering when selecting a
protocol and returns TlsNoApplicationProtocol when no common protocol
exists. The negotiated protocol is exposed on the Connection object via
the alpn_protocol field.

allain added 2 commits March 16, 2026 20:55
  Implement RFC 7301 ALPN extension for both client and server handshakes,
  enabling protocol negotiation (e.g., h2, http/1.1) during the TLS
  handshake. The server uses server-preference ordering when selecting a
  protocol and returns TlsNoApplicationProtocol when no common protocol
  exists. The negotiated protocol is exposed on the Connection object via
  the alpn_protocol field.
@allain

allain commented Mar 19, 2026

Copy link
Copy Markdown
Contributor Author

Without having the HTTP ALPN protocols some of the top 100 sites just closed the connection.

@ianic ianic merged commit d91b50b into ianic:main Mar 20, 2026
1 check passed
@ianic

ianic commented Mar 20, 2026

Copy link
Copy Markdown
Owner

Nice. Thanks.

Do you have some of the domains which fail without ALPN.

@allain

allain commented Mar 21, 2026

Copy link
Copy Markdown
Contributor Author

You can find them by looking at the failed GitHub action that ran top_sites

@allain allain deleted the alpn branch May 5, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants