【发布时间】:2022-01-25 18:40:11
【问题描述】:
我知道,如果我们谈论非安全连接,则可以通过 http/2 协议建立连接而无需 ALPN。 但是 TLS 连接呢?在RFC说:
A client MUST send the connection preface (Section 3.5) and then MAY
immediately send HTTP/2 frames to such a server; servers can identify
these connections by the presence of the connection preface. This
only affects the establishment of HTTP/2 connections over cleartext
TCP; **implementations that support HTTP/2 over TLS MUST use protocol
negotiation in TLS [TLS-ALPN]**.
是否意味着服务器和客户端都必须使用 ALPN 通过 TLS 和 http2 建立连接?还是有解决方法和其他选择?
【问题讨论】: