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): replace hyper::Body with BoxBody #3480

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

cratelyn
Copy link
Collaborator

UpgradeResponseBody currently wraps a hyper::Body. this type is removed in hyper 1.0.

this commit replaces this with a generic B-typed body.

see #3479, which performs the same change in linkerd-http-upgrade.

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

@cratelyn

This comment was marked as resolved.

@cratelyn
Copy link
Collaborator Author

#3482 tweaks the build script in question so that we'll get a better error in this situation in the future.

`UpgradeResponseBody` currently wraps a `hyper::Body`. this type is
removed in hyper 1.0.

this commit replaces this with a generic `B`-typed body.

see #3479, which performs
the same change in `linkerd-http-upgrade`.

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

Signed-off-by: katelyn martin <[email protected]>
@cratelyn cratelyn force-pushed the kate/hyper-1.x-proxy-http-orig-proto-body branch from cc13c01 to a730c36 Compare January 6, 2025 18:31
@cratelyn
Copy link
Collaborator Author

cratelyn commented Jan 6, 2025

ci issues have resolved after rebasing this on the latest main. i'll mark comments above as resolved, and mark this as ready for review.

@cratelyn cratelyn marked this pull request as ready for review January 6, 2025 18:40
@cratelyn cratelyn requested a review from a team as a code owner January 6, 2025 18:40
Copy link
Member

@olix0r olix0r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd expect that we can use hyper::body::Incoming here, but the box won't hurt us

@cratelyn cratelyn merged commit b07b0d8 into main Jan 6, 2025
15 checks passed
@cratelyn cratelyn deleted the kate/hyper-1.x-proxy-http-orig-proto-body branch January 6, 2025 18:47
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