diff options
| author | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2026-02-09 10:13:32 +0100 |
|---|---|---|
| committer | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2026-02-09 10:13:41 +0100 |
| commit | 7a544b8c3020263da567bf7133cfdbc78b987c70 (patch) | |
| tree | e03d500a78561a5c6eff5b3937a6bc5e7289f854 | |
| parent | 384ae00c9eb9c5a16287ce10d567d1af03c233c0 (diff) | |
| download | mullvadvpn-evaluate-hyper-legacy-client-des-1288.tar.xz mullvadvpn-evaluate-hyper-legacy-client-des-1288.zip | |
WIP client poolevaluate-hyper-legacy-client-des-1288
| -rw-r--r-- | Cargo.lock | 6 | ||||
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | mullvad-api/Cargo.toml | 2 | ||||
| -rw-r--r-- | mullvad-api/src/rest.rs | 3 |
4 files changed, 8 insertions, 5 deletions
diff --git a/Cargo.lock b/Cargo.lock index 30738e3af4..ea1b3c4f5b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1958,14 +1958,13 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.16" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d9b05277c7e8da2c93a568989bb6207bef0112e8d17df7a6eda4a3cf143bc5e" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" dependencies = [ "base64 0.22.1", "bytes", "futures-channel", - "futures-core", "futures-util", "http", "http-body", @@ -1976,6 +1975,7 @@ dependencies = [ "pin-project-lite", "socket2 0.6.0", "tokio", + "tower-layer", "tower-service", "tracing", ] diff --git a/Cargo.toml b/Cargo.toml index 38f1ff6410..03d449e73b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -75,7 +75,7 @@ gotatun = { version = "0.2.0" } hickory-proto = "0.25.2" hickory-resolver = "0.25.2" hickory-server = { version = "0.25.2", features = ["resolver"] } -hyper-util = { version = "0.1.8", features = [ +hyper-util = { version = "0.1.20", features = [ "client", "http1", "http2", diff --git a/mullvad-api/Cargo.toml b/mullvad-api/Cargo.toml index d5745521ff..2ab70f707f 100644 --- a/mullvad-api/Cargo.toml +++ b/mullvad-api/Cargo.toml @@ -19,7 +19,7 @@ futures = { workspace = true } http = "1.1.0" http-body-util = "0.1.2" hyper = { version = "1.8.1", features = ["client", "http1"] } -hyper-util = { workspace = true } +hyper-util = { workspace = true, features = ["client-pool"] } ipnetwork = { workspace = true } libc = "0.2" log = { workspace = true } diff --git a/mullvad-api/src/rest.rs b/mullvad-api/src/rest.rs index c78041b674..65c64df0ba 100644 --- a/mullvad-api/src/rest.rs +++ b/mullvad-api/src/rest.rs @@ -453,6 +453,9 @@ where let stream = connection.get_stream(self.uri().clone()).await.unwrap(); let tokio_io = hyper_util::rt::TokioIo::new(stream); + hyper_util::client::pool::map::Map::builder::<http::Uri>() + .keys(|dst| (dst.scheme().cloned(), dst.authority().cloned())) + .values(move |dst| {}); let (mut sender, conn) = hyper::client::conn::http1::handshake(tokio_io).await?; // Make request to hyper client |
