diff --git a/Cargo.lock b/Cargo.lock index c540816dade..f825a1192d5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2817,7 +2817,7 @@ dependencies = [ [[package]] name = "libp2p-perf" -version = "0.2.0" +version = "0.2.1" dependencies = [ "anyhow", "async-trait", @@ -2992,7 +2992,7 @@ dependencies = [ [[package]] name = "libp2p-request-response" -version = "0.25.2" +version = "0.25.3" dependencies = [ "async-std", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 8d57d1dd9e9..4c89226ec44 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -91,7 +91,7 @@ libp2p-metrics = { version = "0.13.1", path = "misc/metrics" } libp2p-mplex = { version = "0.40.0", path = "muxers/mplex" } libp2p-muxer-test-harness = { path = "muxers/test-harness" } libp2p-noise = { version = "0.43.2", path = "transports/noise" } -libp2p-perf = { version = "0.2.0", path = "protocols/perf" } +libp2p-perf = { version = "0.2.1", path = "protocols/perf" } libp2p-ping = { version = "0.43.1", path = "protocols/ping" } libp2p-plaintext = { version = "0.40.1", path = "transports/plaintext" } libp2p-pnet = { version = "0.23.1", path = "transports/pnet" } @@ -99,7 +99,7 @@ libp2p-quic = { version = "0.9.3", path = "transports/quic" } libp2p-relay = { version = "0.16.2", path = "protocols/relay" } libp2p-rendezvous = { version = "0.13.1", path = "protocols/rendezvous" } libp2p-upnp = { version = "0.1.1", path = "protocols/upnp" } -libp2p-request-response = { version = "0.25.2", path = "protocols/request-response" } +libp2p-request-response = { version = "0.25.3", path = "protocols/request-response" } libp2p-server = { version = "0.12.3", path = "misc/server" } libp2p-swarm = { version = "0.43.6", path = "swarm" } libp2p-swarm-derive = { version = "0.33.0", path = "swarm-derive" } diff --git a/protocols/perf/CHANGELOG.md b/protocols/perf/CHANGELOG.md index e46a94e981a..3cca413edd8 100644 --- a/protocols/perf/CHANGELOG.md +++ b/protocols/perf/CHANGELOG.md @@ -1,3 +1,10 @@ +## 0.2.1 - unreleased + + ## 0.2.0 - Raise MSRV to 1.65. diff --git a/protocols/perf/Cargo.toml b/protocols/perf/Cargo.toml index c61deb37c29..5e9ecad5202 100644 --- a/protocols/perf/Cargo.toml +++ b/protocols/perf/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-perf" edition = "2021" rust-version = { workspace = true } description = "libp2p perf protocol implementation" -version = "0.2.0" +version = "0.2.1" authors = ["Max Inden "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" diff --git a/protocols/perf/src/client.rs b/protocols/perf/src/client.rs index 93c2086a49e..f95f33faf2e 100644 --- a/protocols/perf/src/client.rs +++ b/protocols/perf/src/client.rs @@ -59,6 +59,7 @@ pub struct Behaviour { impl Default for Behaviour { fn default() -> Self { let mut req_resp_config = request_response::Config::default(); + #[allow(deprecated)] req_resp_config.set_connection_keep_alive(Duration::from_secs(60 * 5)); req_resp_config.set_request_timeout(Duration::from_secs(60 * 5)); Self { diff --git a/protocols/perf/src/server.rs b/protocols/perf/src/server.rs index 79f77c74650..34435877d95 100644 --- a/protocols/perf/src/server.rs +++ b/protocols/perf/src/server.rs @@ -38,6 +38,7 @@ pub struct Behaviour { impl Default for Behaviour { fn default() -> Self { let mut req_resp_config = request_response::Config::default(); + #[allow(deprecated)] req_resp_config.set_connection_keep_alive(Duration::from_secs(60 * 5)); req_resp_config.set_request_timeout(Duration::from_secs(60 * 5)); diff --git a/protocols/request-response/CHANGELOG.md b/protocols/request-response/CHANGELOG.md index 485fa911396..ab8c7546e4f 100644 --- a/protocols/request-response/CHANGELOG.md +++ b/protocols/request-response/CHANGELOG.md @@ -1,4 +1,8 @@ ## 0.25.2 - unreleased +- Deprecate `request_response::Config::set_connection_keep_alive` in favor of `SwarmBuilder::idle_connection_timeout`. + See [PR 4678]. + +[PR 4678]: (https://github.com/libp2p/rust-libp2p/pull/4678)