diff --git a/protocols/relay/CHANGELOG.md b/protocols/relay/CHANGELOG.md index 01e8dc2834d..d26660f14b4 100644 --- a/protocols/relay/CHANGELOG.md +++ b/protocols/relay/CHANGELOG.md @@ -1,5 +1,8 @@ ## 0.17.0 - unreleased +- Fix a rare race condition when making a reservation on a relay that could lead to a failed reservation. + See [PR 4747](https://github.com/libp2p/rust-lib2pp/pulls/4747). + ## 0.16.2 ## 0.16.1 diff --git a/protocols/relay/src/protocol/outbound_hop.rs b/protocols/relay/src/protocol/outbound_hop.rs index adad0e23711..d43dd63fe32 100644 --- a/protocols/relay/src/protocol/outbound_hop.rs +++ b/protocols/relay/src/protocol/outbound_hop.rs @@ -171,8 +171,6 @@ pub(crate) async fn handle_reserve_message_response( .map(Delay::new) .ok_or(FatalUpgradeError::InvalidReservationExpiration)?; - substream.close().await?; - Ok(Ok(Reservation { renewal_timeout, addrs,