From be080784ddc016a6ca7ffb102387c8d51b4b52fd Mon Sep 17 00:00:00 2001 From: Cre3per <12541974+Cre3per@users.noreply.github.com> Date: Mon, 27 Jan 2025 00:04:53 +0100 Subject: [PATCH] fix(ext/fetch): update h2 to fix sending a PROTOCOL_ERROR instead of REFUSED_STREAM when receiving oversized headers (#27531) Fixes #26490 Related PR in h2 https://github.com/hyperium/h2/pull/792 Related release of h2 https://github.com/hyperium/h2/releases/tag/v0.4.6 --- Cargo.lock | 26 ++++++++++++++++---------- Cargo.toml | 2 +- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2c8f327b5b..91f7247f26 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -347,6 +347,12 @@ dependencies = [ "pin-project-lite", ] +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + [[package]] name = "auto_impl" version = "1.2.0" @@ -1706,7 +1712,7 @@ dependencies = [ "dyn-clone", "error_reporter", "fast-socks5", - "h2 0.4.4", + "h2 0.4.7", "hickory-resolver", "http 1.1.0", "http-body-util", @@ -2061,7 +2067,7 @@ dependencies = [ "elliptic-curve", "errno", "faster-hex", - "h2 0.4.4", + "h2 0.4.7", "hkdf", "http 1.1.0", "http-body-util", @@ -2591,7 +2597,7 @@ dependencies = [ "deno_permissions", "deno_tls", "fastwebsockets", - "h2 0.4.4", + "h2 0.4.7", "http 1.1.0", "http-body-util", "hyper 1.4.1", @@ -3851,15 +3857,15 @@ dependencies = [ [[package]] name = "h2" -version = "0.4.4" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "816ec7294445779408f36fe57bc5b7fc1cf59664059096c65f905c1c61f58069" +checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e" dependencies = [ + "atomic-waker", "bytes", "fnv", "futures-core", "futures-sink", - "futures-util", "http 1.1.0", "indexmap 2.3.0", "slab", @@ -4231,7 +4237,7 @@ dependencies = [ "bytes", "futures-channel", "futures-util", - "h2 0.4.4", + "h2 0.4.7", "http 1.1.0", "http-body 1.0.0", "httparse", @@ -6443,7 +6449,7 @@ dependencies = [ "bytes", "futures-core", "futures-util", - "h2 0.4.4", + "h2 0.4.7", "http 1.1.0", "http-body 1.0.0", "http-body-util", @@ -7984,7 +7990,7 @@ dependencies = [ "flate2", "futures", "glob", - "h2 0.4.4", + "h2 0.4.7", "http 1.1.0", "http-body-util", "hyper 1.4.1", @@ -8278,7 +8284,7 @@ dependencies = [ "axum", "base64 0.22.1", "bytes", - "h2 0.4.4", + "h2 0.4.7", "http 1.1.0", "http-body 1.0.0", "http-body-util", diff --git a/Cargo.toml b/Cargo.toml index 40374eef48..1ad5c5b9c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -142,7 +142,7 @@ flate2 = { version = "1.0.30", default-features = false } fs3 = "0.5.0" futures = "0.3.21" glob = "0.3.1" -h2 = "0.4.4" +h2 = "0.4.6" hickory-resolver = { version = "0.25.0-alpha.4", features = ["tokio-runtime", "serde"] } http = "1.0" http-body = "1.0"