Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALPN H2 Support for Netty Client #5794

Merged
merged 24 commits into from
Jan 22, 2025
Merged

Conversation

davidh44
Copy link
Contributor

Motivation and Context

Adds ALPN H2 support to Netty client. ALPN is required when using an ALB in order to negotiate H2 connection.
This can be enabled when using Netty client with h2 protocol.

ALPN support was backported to Java 8 , only works with 1.8.0_251 and newer

Modifications

Introduces new ProtocolNegotiation enum class:
ASSUME_PROTOCOL - Default existing setting, client uses prior knowledge
ALPN- Uses ALPN, without fallback. Only works with h2, throws error if set with Protocol.HTTP1_1

Testing

Added unit and integ tests

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

@davidh44 davidh44 requested a review from a team as a code owner January 14, 2025 21:02
@davidh44 davidh44 added this pull request to the merge queue Jan 22, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 22, 2025
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
70.1% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@davidh44 davidh44 enabled auto-merge January 22, 2025 19:29
@davidh44 davidh44 added this pull request to the merge queue Jan 22, 2025
Merged via the queue into master with commit 62be0c1 Jan 22, 2025
16 of 17 checks passed
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.

3 participants