On Mon, 6 Apr 2026 15:55:33 GMT, Matthew Donovan <[email protected]> wrote:
> According to RFC 7301, the client sends the server a list of available > application protocols and the server -- using a list of prioritized protocols > -- chooses which protocol to use and sends it back to the client. > > The logic in expectedNegoAppProtocol prioritizes the client protocol first. > > This PR updates the method to choose the first server-supported protocol that > the client also supports. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 04bb3a91 Author: Matthew Donovan <[email protected]> URL: https://git.openjdk.org/jdk/commit/04bb3a91dbfb8fb9db93ea9609210e036a4c5d10 Stats: 25 lines in 2 files changed: 19 ins; 0 del; 6 mod 8381176: Utilities.expectedNegoAppProtocol chooses client ALPN protocol over server's Reviewed-by: djelinski, myankelevich ------------- PR: https://git.openjdk.org/jdk/pull/30587
