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

chore(proxy/http): address hyper deprecations in ServeHttp<N> #3459

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

cratelyn
Copy link
Collaborator

see linkerd/linkerd2#8733 for more information on upgrading to hyper 1.0.

this commit is based upon #3456, and #3457.

this commit is also contingent upon hyperium/hyper#3796, which backports the server connection builder's max_pending_accept_reset_streams() method.

this commit addresses hyper deprecations in ServeHttp<N>, which defines a reusable HTTP/1 and HTTP/2 server for the linkerd proxy.

essentially, this commit replaces the singular Http<E> with a pair of http/1 and http/2 specific connection Builders. method names no longer have http2_* prefixes, otherwise nothing about the connection setup has been changed. in the Service implementation, we delegate to the appropriate builder based upon the protocol version.

@cratelyn cratelyn marked this pull request as ready for review December 13, 2024 14:40
@cratelyn cratelyn requested a review from a team as a code owner December 13, 2024 14:40
Base automatically changed from kate/hyper-1.x-workspace-dependency-pt-2-upgrade to main December 13, 2024 16:16
@cratelyn cratelyn force-pushed the kate/hyper-1.x-proxy-http-deprecations branch from 0b23cd7 to fbac483 Compare December 13, 2024 16:19
@cratelyn
Copy link
Collaborator Author

cratelyn commented Dec 13, 2024

rebased onto main now that #3456 and #3457 have merged... ♻️

edit: ...and once more, after sorting out #3461...

@cratelyn cratelyn force-pushed the kate/hyper-1.x-proxy-http-deprecations branch from fbac483 to 78f728c Compare December 13, 2024 16:34
@cratelyn cratelyn changed the base branch from main to kate/hyper-1.x-fix-bad-merge-remove-duplicate-fn December 13, 2024 16:36
Base automatically changed from kate/hyper-1.x-fix-bad-merge-remove-duplicate-fn to main December 13, 2024 16:38
see linkerd/linkerd2#8733 for more information on upgrading to hyper 1.0.

this commit is based upon #3456, and #3457.

this commit is also contingent upon hyperium/hyper#3796, which backports
the server connection builder's `max_pending_accept_reset_streams()`
method.

this commit addresses hyper deprecations in `ServeHttp<N>`, which
defines a reusable HTTP/1 and HTTP/2 server for the linkerd proxy.

essentially, this commit replaces the singular `Http<E>` with a pair of
http/1 and http/2 specific connection `Builder`s. method names no longer
have `http2_*` prefixes, otherwise nothing about the connection setup
has been changed. in the `Service` implementation, we delegate to the
appropriate builder based upon the protocol version.

Signed-off-by: katelyn martin <[email protected]>
@cratelyn cratelyn force-pushed the kate/hyper-1.x-proxy-http-deprecations branch from 78f728c to 4b44e65 Compare December 13, 2024 16:40
@cratelyn cratelyn enabled auto-merge (squash) December 13, 2024 16:40
@cratelyn cratelyn merged commit ea51362 into main Dec 13, 2024
15 checks passed
@cratelyn cratelyn deleted the kate/hyper-1.x-proxy-http-deprecations branch December 13, 2024 16:54
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