From ac2848866a4bc792e2daae681a62c1518ecc6e3a Mon Sep 17 00:00:00 2001 From: Max Inden Date: Thu, 2 Nov 2023 07:54:23 +0100 Subject: [PATCH] fix(relay): close stream once done sending Not explicitly closing a stream can lead to stream resets in the happy path once the stream is dropped. Instead, explicitly close the stream once the local node is done sending data. Related: #4747. Pull-Request: #4776. --- protocols/relay/src/protocol/outbound_hop.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocols/relay/src/protocol/outbound_hop.rs b/protocols/relay/src/protocol/outbound_hop.rs index 2a39ec5fd4a..e5f9a6a0a52 100644 --- a/protocols/relay/src/protocol/outbound_hop.rs +++ b/protocols/relay/src/protocol/outbound_hop.rs @@ -124,6 +124,8 @@ pub(crate) async fn make_reservation(stream: Stream) -> Result