arturobernalg opened a new pull request, #631:
URL: https://github.com/apache/httpcomponents-core/pull/631

   This PR fixes a conformance issue in the FORCE_HTTP_2 negotiation path: when 
running over TLS, the client could proceed with strictALPNHandshake=false and 
send the HTTP/2 preface even if ALPN was missing/empty (or not h2). For HTTPS, 
HTTP/2 startup must be explicitly negotiated via ALPN; otherwise the connection 
should fail fast.
   
   
   [RFC 9113 3.2](https://www.rfc-editor.org/rfc/rfc9113.html#section-3.2) 
(Starting HTTP/2 for “https” URIs)
   “A client that makes a request to an "https" URI uses TLS [TLS13] with the 
ALPN extension [TLS-ALPN].”
   
   [RFC 9113 3.3](https://www.rfc-editor.org/rfc/rfc9113.html#section-3.3) 
(Starting HTTP/2 with Prior Knowledge)
   “This only affects the establishment of HTTP/2 connections over cleartext 
TCP; HTTP/2 connections over TLS MUST use protocol negotiation in TLS 
[TLS-ALPN].”


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to