From 1f81c77c3b9c769fce93c6fd0dfe1082065165a3 Mon Sep 17 00:00:00 2001 From: katelyn martin Date: Mon, 23 Mar 2026 00:00:00 +0000 Subject: [PATCH] chore(deps)!: bump h2 from 0.5.10 to 0.6.2 this crate updates the `h2` crate. while this is mechanically a routine dependency upgrade, this contains some noteworthy bug fixes that are worth calling out. see https://github.com/linkerd/linkerd2/discussions/14800 for additional context. see hyperium/h2#858 and hyperium/h2#860. > We don't want to remember the streams for forever, that would cause > memory to grow. Nor do we want to accept frames on those streams > without limit, since that would waste resources. Thus, we limit how > much we remember, by stream count and duration. > > This PR changes the defaults to be something perhaps a little more > reasonable: > > * 50 streams, a conservative amount of half of the recommending > minimum concurrent streams any remote SHOULD support. > > * 1 second, since the RFC only suggests about 1 RTT. We don't keep > track of RTT, but even p99 RTT is around 250ms, maybe 500ms. because this PR changes some defaults in `h2`, this is marked as a "breaking" change. this fixes linkerd/linkerd2#14908. X-ref: https://github.com/linkerd/linkerd2/issues/14908 X-ref: https://github.com/hyperium/h2/pull/858 X-ref: https://github.com/hyperium/h2/pull/860 X-ref: https://github.com/hyperium/h2/issues/853 X-ref: https://github.com/linkerd/linkerd2/discussions/14800 Signed-off-by: katelyn martin --- Cargo.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4db0e7d5b4..9b1f51464a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -838,9 +838,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.4.11" +version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17da50a276f1e01e0ba6c029e47b7100754904ee8a278f886546e98575380785" +checksum = "2f44da3a8150a6703ed5d34e164b875fd14c2cdab9af1252a9a1020bde2bdc54" dependencies = [ "atomic-waker", "bytes", @@ -1040,7 +1040,7 @@ dependencies = [ "hyper", "libc", "pin-project-lite", - "socket2 0.6.2", + "socket2 0.5.10", "tokio", "tower-service", "tracing",