From 52c847d5d07a7981e5c679a46612cc5207ce2563 Mon Sep 17 00:00:00 2001 From: Hlib Kanunnikov Date: Thu, 14 Sep 2023 19:46:47 +0200 Subject: [PATCH] fix(shrexeds): close stream (#2705) --- share/p2p/shrexeds/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/share/p2p/shrexeds/client.go b/share/p2p/shrexeds/client.go index 387594186e..7602bb5fb0 100644 --- a/share/p2p/shrexeds/client.go +++ b/share/p2p/shrexeds/client.go @@ -89,6 +89,7 @@ func (c *Client) doRequest( if err != nil { return nil, fmt.Errorf("failed to open stream: %w", err) } + defer stream.Close() c.setStreamDeadlines(ctx, stream)