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::client::conn::SendRequest deprecation #3410

Closed
wants to merge 2 commits into from

Conversation

cratelyn
Copy link
Collaborator

@cratelyn cratelyn commented Dec 3, 2024

this commit updates code in linkerd-proxy-http's HTTP/2 client code, and the linkerd-app-test crate's TestServer, to use the new hyper::client::conn::http2::SendRequest backported from the 1.x major release.

see hyperium/hyper#2960 for more information.

this commit refrains from updating the broader client connection system, and addresses the breaking changes to SendRequest made in the 1.0 major release, namely:

NB: this change depends on hyperium/hyper#3798.

@cratelyn cratelyn force-pushed the kate/hyper-1.x-send-request branch from 1e51908 to d9e5a3c Compare December 3, 2024 21:37
@cratelyn

This comment was marked as resolved.

…tion

this commit updates code in `linkerd-proxy-http`'s HTTP/2 client code,
and the `linkerd-app-test` crate's `TestServer`, to use the new
`hyper::client::conn::http2::SendRequest` backported from the 1.x major
release.

see <hyperium/hyper#2960> for more information.

this commit refrains from updating the broader client connection system,
and addresses the breaking changes to `SendRequest` made in the 1.0
major release, namely:

* send request is no longer a tower service:
  * <https://docs.rs/hyper/0.14.31/hyper/client/conn/struct.SendRequest.html#impl-Service%3CRequest%3CB%3E%3E-for-SendRequest%3CB%3E>
  * <https://docs.rs/hyper/1.5.1/hyper/client/conn/http2/struct.SendRequest.html#trait-implementations>

* `send_request()` now returns an anonymous `impl Future` and not a
  named `ResponseFuture`, as in `0.14`.
  * <https://docs.rs/hyper/0.14.31/hyper/client/conn/struct.ResponseFuture.html>
  * <https://docs.rs/hyper/1.5.1/hyper/client/conn/http2/struct.SendRequest.html#method.send_request>

NB: this change depends on <hyperium/hyper#3798>.

Signed-off-by: katelyn martin <[email protected]>
@cratelyn cratelyn force-pushed the kate/hyper-1.x-send-request branch from d9e5a3c to 5a3fbd9 Compare December 3, 2024 21:48
@cratelyn cratelyn changed the base branch from kate/hyper-1.x-local-patch to main December 3, 2024 21:48
@cratelyn cratelyn changed the title chore(proxy/http): address hyper::client::conn::SendRequest depreca… chore(proxy/http): address hyper::client::conn::SendRequest deprecation Dec 3, 2024
@cratelyn cratelyn force-pushed the kate/hyper-1.x-send-request branch from 5a3fbd9 to 9ebf533 Compare December 4, 2024 02:10
@cratelyn
Copy link
Collaborator Author

cratelyn commented Dec 4, 2024

error[source-not-allowed]: detected 'git' source not explicitly allowed
   ┌─ /github/workspace/Cargo.lock:93:15
   │
93 │ hyper 0.14.31 git+https://github.com/cratelyn/hyper?branch=kate/send-request-legacy-glue

ci failing on account of the patched dependency 👍

@cratelyn
Copy link
Collaborator Author

i am going to close this.

@cratelyn cratelyn closed this Dec 11, 2024
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.

1 participant