From 2e96d3dbff642e01cf12eb7ebad8e2bfae15d0f8 Mon Sep 17 00:00:00 2001 From: Vladimir Kuptsov Date: Mon, 27 May 2024 23:11:18 +0200 Subject: [PATCH] properly handle success result for live stream --- pkg/client/live/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/client/live/client.go b/pkg/client/live/client.go index 04c72950..f521f71a 100644 --- a/pkg/client/live/client.go +++ b/pkg/client/live/client.go @@ -353,6 +353,8 @@ func (c *Client) Stream(r io.Reader) error { default: bytesRead, err := r.Read(chunk) switch { + case err == nil: + // do nothing case strings.Contains(err.Error(), FatalReadSocketErr): klog.V(1).Infof("Fatal socket error: %v\n", err) klog.V(6).Infof("live.listen() LEAVE\n")